initial commit
This commit is contained in:
17
deployment/staging/staging.dockerfile
Normal file
17
deployment/staging/staging.dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:lts-alpine AS build-env
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./package.json ./
|
||||
COPY ./package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY ./ ./
|
||||
ARG ARG_APP_VERSION
|
||||
ENV APP_VERSION=$ARG_APP_VERSION
|
||||
RUN npm version -no-git-tag-version $APP_VERSION
|
||||
RUN node ./node_modules/@angular/cli/bin/ng build mastolists --configuration=staging
|
||||
|
||||
|
||||
FROM nginx:alpine
|
||||
LABEL author="Novaloop AG"
|
||||
COPY --from=build-env /app/dist/mastolists /usr/share/nginx/html
|
||||
COPY ./deployment/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
Reference in New Issue
Block a user