Files
philosophish/client/Dockerfile
Blitblank 64454d0b94
Some checks failed
Build and Deploy Client / build-and-deploy (push) Failing after 3s
update dockerfile to include nginx configuration
2026-08-25 22:40:21 -05:00

26 lines
560 B
Docker

# build angular app
FROM node:current-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build -- --configuration production
# nginx
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
# serve app
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# docker build -t phish-client:latest .
# docker tag phish-client:latest git.vxbard.net/homeburger/phish-client:1.0
# docker push git.vxbard.net/homeburger/phish-client:1.0