Merge pull request #752 from gnomus/master

[Fix][Docker] Update Package Repository for Install
This commit is contained in:
Omar Roth 2019-09-14 10:05:35 -04:00 committed by GitHub
commit 24c95c27c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
FROM alpine:edge AS builder
RUN apk add -u crystal shards libc-dev \
RUN apk add --no-cache crystal shards libc-dev \
yaml-dev libxml2-dev sqlite-dev zlib-dev openssl-dev \
sqlite-static zlib-static openssl-libs-static
WORKDIR /invidious
@ -15,7 +15,7 @@ RUN crystal build --static --release \
./src/invidious.cr
FROM alpine:latest
RUN apk add -u imagemagick ttf-opensans
RUN apk add --no-cache imagemagick ttf-opensans
WORKDIR /invidious
RUN addgroup -g 1000 -S invidious && \
adduser -u 1000 -S invidious -G invidious