-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Change docker image, enable server build
- Loading branch information
Showing
3 changed files
with
42 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
FROM sigoden/dufs | ||
FROM alpine:3.20.3 | ||
|
||
ARG ARCHIVE_NAME | ||
RUN apk add --update git && \ | ||
apk add --update git-daemon \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Dufs settings: | ||
ENV DUFS_BIND=127.0.0.1 | ||
ENV DUFS_PORT=5000 | ||
ENV DUFS_TLS_CERT=cert.pem | ||
ENV DUFS_TLS_KEY=key.pem | ||
COPY --chown=1000:1000 data /data | ||
|
||
COPY ${ARCHIVE_NAME} /data/ | ||
|
||
CMD ["/data"] | ||
CMD ["git", "daemon", "--verbose", "--port=12345","--export-all", "/data"] |