feat: add docker files
adds compose.yml, Dockerfile and entrypoint.sh for running the backend inside of docker
This commit is contained in:
parent
026d48c6e7
commit
c69f2eb4f0
3 changed files with 94 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM debian:12
|
||||
|
||||
RUN apt update && apt install libssl3 && rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/*
|
||||
|
||||
COPY target/release/backend /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"]
|
Loading…
Add table
Add a link
Reference in a new issue