mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -05:00
Update Docker build
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
### STAGE 1: Build ###
|
### STAGE 1: Build ###
|
||||||
|
|
||||||
FROM node:16.2-alpine as builder
|
FROM node:18.7-alpine as builder
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
@@ -10,11 +10,11 @@ WORKDIR /ng-app
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run ng build -- --prod --output-path=dist
|
RUN npm run ng build -- --configuration production --aot --output-path=dist
|
||||||
|
|
||||||
### STAGE 2: Setup ###
|
### STAGE 2: Setup ###
|
||||||
|
|
||||||
FROM nginx:1.21.0-alpine
|
FROM nginx:1.23.0-alpine
|
||||||
|
|
||||||
COPY nginx/default.conf /etc/nginx/conf.d/
|
COPY nginx/default.conf /etc/nginx/conf.d/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user