-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: create alpine images to allow running commands inside the contain…
…er (#992) * feat: build alpine tag alongisde slim tag * fix: warnings in Dockerfile * docs: updated bash reference
- Loading branch information
Showing
7 changed files
with
70 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters