From 0d32913b5eb224c98e406925df93c2b443eecbbf Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Thu, 8 Jun 2023 21:49:26 -0400 Subject: [PATCH] chore: add docker-compose.yml file for testing --- Dockerfile | 3 ++- docker-compose.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 9bc982b..b12c523 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,7 +59,8 @@ RUN apk add --no-cache sqlite # Copy application binary from builder image COPY --from=builder /usr/src/huellas/target/release/huellas /usr/local/bin - +# Copy .env +COPY .env /usr/local/bin # Copy static files COPY --from=builder /usr/src/huellas/static /usr/local/bin/static/ # Copy javascript client diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..12ce422 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' +services: + huellas: + restart: no + image: oolong.ludwig.dog/pitbuster/huellas:0.2.1 + volumes: + - ./db:/usr/local/bin/db + ports: + - "8059:3000"