initial commit

This commit is contained in:
2022-12-22 16:38:25 +01:00
commit a3f54bb537
143 changed files with 24386 additions and 0 deletions

20
deployment/nginx.conf Normal file
View File

@@ -0,0 +1,20 @@
server {
listen 0.0.0.0:8080;
listen [::]:8080;
default_type application/octet-stream;
gzip on;
gzip_comp_level 6;
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;
client_max_body_size 256M;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html =404;
}
}

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

View 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