This repository has been archived on 2024-11-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mastodon-apps/deployment/production/production.dockerfile
2022-12-22 16:38:25 +01:00

18 lines
483 B
Docker

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=production
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