Merge pull request #314 from schlagmichdoch/reduce-docker-size

Switch Docker base image to reduce size
This commit is contained in:
schlagmichdoch 2024-07-17 15:41:25 +02:00 committed by GitHub
commit 794e6304fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 5 deletions

View file

@ -1,5 +1,13 @@
node_modules
.github
.git*
*.md
.idea
dev
docs
licenses
node_modules
pairdrop-cli
*.md
*.yml
Dockerfile
rtc_config_example.json
turnserver_example.conf

View file

@ -1,11 +1,13 @@
FROM node:lts-alpine
FROM alpine:latest
WORKDIR /home/node/app
COPY package*.json ./
RUN npm ci
RUN apk add --no-cache nodejs npm
RUN NODE_ENV="production" npm ci --omit=dev
# Directories and files excluded via .dockerignore
COPY . .
# environment settings