mirror of
https://github.com/iv-org/instances-api.git
synced 2025-08-09 14:52:16 -04:00
Update dockerfile with Tor, curl and yaml support
This commit is contained in:
parent
e58e7024e4
commit
c4da7f353f
2 changed files with 11 additions and 2 deletions
|
@ -3,14 +3,15 @@ WORKDIR /app
|
|||
COPY ./shard.yml ./shard.yml
|
||||
RUN shards install
|
||||
COPY ./src/ ./src/
|
||||
RUN crystal build ./src/instances.cr --release
|
||||
RUN crystal build ./src/instances.cr -s -p -t
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk add --no-cache gc pcre libgcc
|
||||
RUN apk add --no-cache gc pcre libgcc yaml
|
||||
WORKDIR /app
|
||||
RUN addgroup -g 1000 -S invidious && \
|
||||
adduser -u 1000 -S invidious -G invidious
|
||||
COPY ./assets/ ./assets/
|
||||
COPY ./config.yml ./config.yml
|
||||
COPY --from=builder /app/instances .
|
||||
|
||||
EXPOSE 3000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue