mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-07 13:35:22 +08:00
* feat: build alpine tag alongisde slim tag * fix: warnings in Dockerfile * docs: updated bash reference
23 lines
585 B
Text
23 lines
585 B
Text
ARG ALPINE_VERSION=3.19
|
|
|
|
FROM docker.io/library/alpine:${ALPINE_VERSION}
|
|
ARG TARGETARCH
|
|
ARG TARGETOS
|
|
ARG TARGETVARIANT
|
|
COPY dist/shiori_${TARGETOS}_${TARGETARCH}${TARGETVARIANT}/shiori /usr/bin/shiori
|
|
RUN apk add --no-cache ca-certificates tzdata && \
|
|
chmod +x /usr/bin/shiori && \
|
|
rm -rf /tmp/* && \
|
|
apk cache clean
|
|
|
|
ENV PORT=8080
|
|
ENV SHIORI_DIR=/shiori
|
|
WORKDIR ${SHIORI_DIR}
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/go-shiori/shiori"
|
|
LABEL maintainer="Felipe Martin <github@fmartingr.com>"
|
|
|
|
EXPOSE ${PORT}
|
|
|
|
ENTRYPOINT ["/usr/bin/shiori"]
|
|
CMD ["server"]
|