forked from Botanical/BotanJS
Update deployment
This commit is contained in:
@@ -19,15 +19,15 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
||||
CGO_ENABLED=0 \
|
||||
GOOS=$TARGETOS \
|
||||
GOARCH=$TARGETARCH \
|
||||
go build -trimpath -o /out/botan-api -ldflags='-s -w' ./cmd/botan-api
|
||||
go build -trimpath -o /out/api-server -ldflags='-s -w' ./cmd/api-server
|
||||
|
||||
RUN mkdir -p /out/tmp && chmod 1777 /out/tmp
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /out/botan-api /usr/local/bin/botan-api
|
||||
COPY --from=build /out/api-server /usr/local/bin/api-server
|
||||
COPY --from=build /workspace/src "./src"
|
||||
COPY --from=build /out/tmp /tmp
|
||||
|
||||
EXPOSE 8080/tcp
|
||||
ENTRYPOINT ["/usr/local/bin/botan-api", "-src", "./src", "-addr", ":8080"]
|
||||
ENTRYPOINT ["/usr/local/bin/api-server", "-src", "./src", "-addr", ":8080"]
|
||||
|
||||
Reference in New Issue
Block a user