frondend/Dockerfile

25 lines
273 B
Docker
Raw Normal View History

2024-10-08 13:35:35 +08:00
FROM node:18-alpine
2024-10-08 14:31:22 +08:00
RUN mkdir -p /app
2024-10-08 13:35:35 +08:00
WORKDIR /app
COPY package.json ./
RUN npm install
RUN npm install --save-dev
2024-10-08 14:31:22 +08:00
COPY . /app
2024-10-08 13:35:35 +08:00
# Build the Next.js app
RUN npm run build
# Expose the port the app will run on
EXPOSE 3000
COPY . .
CMD ["npm", "run", "dev"]