Skip to content

Commit

Permalink
Merge pull request #314 from schlagmichdoch/reduce-docker-size
Browse files Browse the repository at this point in the history
Switch Docker base image to reduce size
  • Loading branch information
schlagmichdoch authored Jul 17, 2024
2 parents f9b8b0f + 10f648b commit 794e630
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 794e630

Please sign in to comment.