frondend/Dockerfile

25 lines
273 B
Docker

FROM node:18-alpine
RUN mkdir -p /app
WORKDIR /app
COPY package.json ./
RUN npm install
RUN npm install --save-dev
COPY . /app
# Build the Next.js app
RUN npm run build
# Expose the port the app will run on
EXPOSE 3000
COPY . .
CMD ["npm", "run", "dev"]