13 lines
No EOL
383 B
Docker
13 lines
No EOL
383 B
Docker
FROM node:lts-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install --legacy-peer-deps # or yarn install
|
|
COPY . .
|
|
RUN npm run build --prod
|
|
|
|
FROM nginx:alpine
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /app/dist/silly-game-frontend /usr/share/nginx/html
|
|
COPY ./nginx.conf /etc/nginx/conf.d/my-angular-app.conf
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"] |