Moved to yarn & Alpine
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
choelzl 2022-05-16 10:17:05 +02:00
parent cb1405c56c
commit 08c7589bad
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
3 changed files with 23 additions and 1355 deletions

View File

@ -1,17 +1,11 @@
FROM node
# Create app directory
FROM node:lts-alpine
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
COPY package.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
RUN yarn install
# Bundle app source
COPY . .
EXPOSE 8080

View File

@ -1,23 +1,23 @@
version: "3.7"
networks:
external:
external: true
external:
external: true
services:
startpage:
build: ./
container_name: startpage
networks:
- external
labels:
- "traefik.enable=true"
- "traefik.http.routers.startpage.entrypoints=web-secure"
- "traefik.http.routers.startpage.rule=Host(`start.helcel.net`)"
- "traefik.http.routers.startpage.tls=true"
- "traefik.http.services.startpage.loadbalancer.server.port=8080"
- "traefik.http.routers.startpage.middlewares=startpage-cache"
- "traefik.http.middlewares.startpage-cache.plugin.souin.api.souin"
- "traefik.http.middlewares.startpage-cache.plugin.souin.default_cache.headers=Content-Type"
- "traefik.http.middlewares.startpage-cache.plugin.souin.default_cache.ttl=900s"
- "traefik.docker.network=external"
restart: always
startpage:
build: ./
container_name: startpage
networks:
- external
labels:
- "traefik.enable=true"
- "traefik.http.routers.startpage.entrypoints=web-secure"
- "traefik.http.routers.startpage.rule=Host(`start.helcel.net`)"
- "traefik.http.routers.startpage.tls=true"
- "traefik.http.services.startpage.loadbalancer.server.port=8080"
- "traefik.http.routers.startpage.middlewares=startpage-cache"
- "traefik.http.middlewares.startpage-cache.plugin.souin.api.souin"
- "traefik.http.middlewares.startpage-cache.plugin.souin.default_cache.headers=Content-Type"
- "traefik.http.middlewares.startpage-cache.plugin.souin.default_cache.ttl=900s"
- "traefik.docker.network=external"
restart: always

1326
package-lock.json generated

File diff suppressed because it is too large Load Diff