-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build multi-arch docker images
- Loading branch information
Showing
6 changed files
with
101 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
testdata/ | ||
.github/ | ||
**.git | ||
* | ||
!filebrowser |
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 |
---|---|---|
@@ -1,15 +1,37 @@ | ||
FROM alpine:latest as alpine | ||
FROM alpine:latest | ||
RUN apk --update add ca-certificates | ||
RUN apk --update add mailcap | ||
|
||
FROM scratch | ||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY --from=alpine /etc/mime.types /etc/mime.types | ||
|
||
VOLUME /srv | ||
EXPOSE 80 | ||
|
||
COPY .docker.json /.filebrowser.json | ||
COPY filebrowser /filebrowser | ||
|
||
ENTRYPOINT [ "/filebrowser" ] | ||
# Create appuser. | ||
ENV USER=root | ||
ENV GROUP=root | ||
ENV UID=0 | ||
ENV GID=0 | ||
ENV UMASK=022 | ||
|
||
RUN if [ "$GID" -ne 0 ]; then \ | ||
addgroup \ | ||
-g "${GID}" \ | ||
"${GROUP}" ; \ | ||
fi; | ||
|
||
RUN adduser \ | ||
-g "" \ | ||
-D \ | ||
-G "${GROUP}" \ | ||
-H \ | ||
-h "/nonexistent" \ | ||
-s "/sbin/nologin" \ | ||
-u "${UID}" \ | ||
"${USER}" | ||
|
||
USER ${USER}:${GROUP} | ||
|
||
RUN umask ${UMASK} | ||
|
||
ENTRYPOINT [ "/filebrowser" ] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.