forked from 77media/video-flow
Update Dockerfile
This commit is contained in:
parent
c13e873cba
commit
0d8e378698
16
Dockerfile
16
Dockerfile
@ -1,8 +1,14 @@
|
|||||||
FROM nginx:stable-alpine
|
FROM node:18-alpine
|
||||||
|
|
||||||
COPY dist/ /usr/share/nginx/html/
|
WORKDIR /app
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
EXPOSE 80
|
COPY .next ./.next
|
||||||
|
COPY node_modules ./node_modules
|
||||||
|
COPY package.json package-lock.json* ./
|
||||||
|
COPY public ./public
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD ["yarn", "start"]
|
||||||
Loading…
x
Reference in New Issue
Block a user