-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial implementation of Docker gubbins.
- Loading branch information
1 parent
7476021
commit 417023d
Showing
2 changed files
with
27 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (C) Damien Dart, <[email protected]>. | ||
# This file is distributed under the MIT licence. For more information, | ||
# please refer to the accompanying "LICENCE" file. | ||
|
||
FROM golang:1.22-alpine AS build | ||
RUN apk add build-base git nodejs upx go-task | ||
WORKDIR /build | ||
COPY . . | ||
RUN go-task build-slim | ||
RUN upx -9 visref | ||
|
||
FROM alpine:latest | ||
COPY --from=build /build/visref /usr/local/bin/visref | ||
EXPOSE 4444 | ||
ENTRYPOINT ["/usr/local/bin/visref"] |
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