mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
Merge pull request #314 from schlagmichdoch/reduce-docker-size
Switch Docker base image to reduce size
This commit is contained in:
commit
794e6304fe
2 changed files with 15 additions and 5 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue