File size: 646 Bytes
cf8b7da
 
 
 
 
2410456
 
cf8b7da
 
 
 
6f23e0f
cf8b7da
 
 
 
a0aff1e
deddf1b
cf8b7da
6f23e0f
5aa4704
02729c4
cf8b7da
2b1e359
cf8b7da
 
d79c631
cf8b7da
 
5b20d84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Dockerfile

# Use an official Node.js runtime as the base image
FROM node:18

USER 1000

# Set the working directory in the container
WORKDIR /usr/src/app

# Copy package.json and package-lock.json to the container
COPY --chown=1000 package.json package-lock.json ./

# Install dependencies
RUN npm install

VOLUME /data

# Copy the rest of the application files to the container
COPY --chown=1000 . .
RUN chmod +x entrypoint.sh

# Build the Next.js application for production
# RUN npm run build

# Expose the application port (assuming your app runs on port 3000)
EXPOSE 3002

# Start the application
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]