19 lines
311 B
Docker
19 lines
311 B
Docker
FROM node:16 AS base
|
|
|
|
# WORKDIR /app
|
|
COPY package.json .
|
|
COPY package-lock.json .
|
|
RUN npm install
|
|
|
|
FROM base as dependencies
|
|
# WORKDIR /app
|
|
COPY pages /pages
|
|
COPY public /public
|
|
COPY styles /styles
|
|
COPY components /components
|
|
COPY next* /
|
|
COPY tsconfig.json /
|
|
|
|
EXPOSE 3000
|
|
RUN npm run build
|
|
CMD ["npm", "start"] |