update dockerfile to use production configuration
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 10s
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 10s
This commit is contained in:
@@ -6,10 +6,11 @@ WORKDIR /app
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN npm run build -- --configuration production
|
||||||
|
|
||||||
# serve app
|
# serve app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["npm", "run", "start", "--", "--host", "0.0.0.0", "--poll", "2000"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
# docker build -t phish-client:latest .
|
# docker build -t phish-client:latest .
|
||||||
# docker tag phish-client:latest git.vxbard.net/homeburger/phish-client:1.0
|
# docker tag phish-client:latest git.vxbard.net/homeburger/phish-client:1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user