Add Github Actions
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,5 +1,5 @@
|
||||
FROM node:11.1.0-alpine AS base
|
||||
LABEL version="4.0.0"
|
||||
FROM node:14.15.3-alpine AS base
|
||||
LABEL version="4.1.0"
|
||||
LABEL description=""
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
@@ -7,21 +7,21 @@ COPY ["package.json", "./"]
|
||||
COPY ["package-lock.json", "./"]
|
||||
|
||||
FROM base AS builder
|
||||
RUN npm set progress=false && npm config set depth 0 && npm ci
|
||||
RUN npm set progress=false && npm config set depth 0 && npm run preinit && npm ci
|
||||
COPY ["src/", "./src"]
|
||||
RUN npm run Prod
|
||||
|
||||
FROM nginx:1.16.0-alpine as Web
|
||||
LABEL maintainer="MrFlutters (https://github.com/MrFlutters)"
|
||||
FROM nginx:1.19.6-alpine as Web
|
||||
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
||||
|
||||
LABEL com.centurylinklabs.watchtower.enable="true"
|
||||
LABEL com.ouroboros.enable="true"
|
||||
LABEL traefik.http.routers.fluttershub-com.tls=true
|
||||
LABEL traefik.http.routers.fluttershub-com.rule=Host(`fluttershub.com`)
|
||||
LABEL traefik.http.routers.fluttershub-com.tls.certresolver=letsencrypt
|
||||
LABEL traefik.http.services.fluttershub-com.loadbalancer.server.port=80
|
||||
LABEL traefik.port=80
|
||||
LABEL traefik.enable=true
|
||||
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user