hermes/backend/Dockerfile
imterah d334878599
All checks were successful
Release code / build (push) Successful in 14m13s
feature: Fixes all backup and API related things to make everything work in production.
2024-12-26 22:54:05 -05:00

10 lines
354 B
Docker

FROM golang:latest AS build
WORKDIR /build
COPY . /build
RUN bash build.sh
FROM busybox:stable AS run
WORKDIR /app
COPY --from=build /build/backends.prod.json /app/backends.json
COPY --from=build /build/api/api /app/hermes
COPY --from=build /build/sshbackend/sshbackend /app/sshbackend
ENTRYPOINT ["/app/hermes", "--backends-path", "/app/backends.json"]