-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use goreleaser to build docker images
- Loading branch information
1 parent
a5dec44
commit 2379314
Showing
2 changed files
with
170 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk update && apk add --update git && rm -rf /var/cache/apk/* | ||
|
||
COPY soft-serve /usr/local/bin/soft-serve | ||
|
||
# Create directories | ||
WORKDIR /soft-serve | ||
# Expose data volume | ||
VOLUME /soft-serve | ||
|
||
# Environment variables | ||
ENV SOFT_SERVE_KEY_PATH "/soft-serve/ssh/soft_serve_server_ed25519" | ||
ENV SOFT_SERVE_INITIAL_ADMIN_KEY "" | ||
ENV SOFT_SERVE_REPO_PATH "/soft-serve/repos" | ||
|
||
# Expose ports | ||
# SSH | ||
EXPOSE 23231/tcp | ||
|
||
# Set the default command | ||
ENTRYPOINT [ "/usr/local/bin/soft-serve" ] |