Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed
This is an *attempt* to make the build system work for arm64 images as well, fingers crossed!
19 lines
455 B
Docker
19 lines
455 B
Docker
FROM debian:12-slim
|
|
|
|
RUN apt update && apt install libssl3 && rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/*
|
|
|
|
COPY target/release/backend-${TARGETARCH} /usr/bin/gorb-backend
|
|
|
|
COPY entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
|
RUN useradd --create-home --home-dir /gorb gorb
|
|
|
|
USER gorb
|
|
|
|
ENV DATABASE_USERNAME="gorb"
|
|
ENV DATABASE_PASSWORD="gorb"
|
|
ENV DATABASE="gorb"
|
|
ENV DATABASE_HOST="localhost"
|
|
ENV DATABASE_PORT="5432"
|
|
|
|
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
|