1
0
Fork 0
forked from gorb/backend
backend-ci-testing/Dockerfile
Radiicall b16d9c3b71 ci: build for x86_64 and arm64
This is an *attempt* to make the build system work for arm64 images as well, fingers crossed!
2025-05-02 13:08:24 +02:00

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"]