save 500 mb by using alpine

This commit is contained in:
Clemens Klug 2019-04-29 16:35:12 +02:00
parent 4f495affbc
commit 5b1927a6ac
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
FROM debian:buster
#FROM debian:buster
#RUN apt update && apt install -y nodejs npm
FROM alpine:3.9
RUN apk add --update --no-cache npm
RUN apt update && apt install -y nodejs npm
ADD . /latex
WORKDIR /latex
RUN npm install

View File

@ -2,7 +2,7 @@ version: "3"
services:
latesch:
build: .
image: docker.wiai.de/latex/build:0.1
image: docker.wiai.de/latex/build:0.1-alpine
ports:
- "127.0.0.1:8000:8000"
# networks: