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"