Compare commits
1 commit
faeb46d188
...
9bd3bebd19
Author | SHA1 | Date | |
---|---|---|---|
Gabriel Simmer | 9bd3bebd19 |
19
Containerfile
Normal file
19
Containerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM golang:1.21.6-bookworm as build
|
||||
|
||||
ENV CGO_ENABLED=0 \
|
||||
GOOS=linux \
|
||||
GOFLAGS="-tags=moderncsqlite"
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY . /build
|
||||
|
||||
RUN make soju
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /build/soju /app/soju
|
||||
COPY --from=build /build/sojuctl /app/sojuctl
|
||||
COPY --from=build /build/sojudb /app/sojudb
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
CMD ["/app/soju"]
|
Loading…
Reference in a new issue