18 lines
220 B
Docker
18 lines
220 B
Docker
|
FROM node:18.13.0-alpine
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
# Listening port
|
||
|
ARG PORT=3000
|
||
|
EXPOSE ${PORT}
|
||
|
|
||
|
ENV NODE_ENV=production
|
||
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN yarn install --production
|
||
|
RUN yarn build
|
||
|
|
||
|
CMD ["yarn", "start"]
|