mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-19 22:55:05 -04:00
Reduce image size by switching to alpine and excluding folders from being copied into the image
This commit is contained in:
parent
331c61fec8
commit
10f648b7cd
2 changed files with 15 additions and 5 deletions
|
@ -1,5 +1,13 @@
|
|||
node_modules
|
||||
.github
|
||||
.git*
|
||||
|
||||
.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