From 38325e63d485653ce009553d21edc33256f7712f Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Sat, 17 Oct 2020 13:03:55 +0200 Subject: [PATCH] update Dockerfile and README.md --- Dockerfile | 6 +++--- README.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4bf5126..7c9d1eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN go mod download # Copy the source from the current directory to the Working Directory inside the container COPY . . -RUN go build -o main . +RUN go build -o dcbot . ######## Start a new stage from scratch ####### FROM alpine:latest @@ -23,7 +23,7 @@ WORKDIR /root/ # Copy the Pre-built binary file from the previous stage COPY --from=builder /app/message/translations ./message/translations -COPY --from=builder /app/main . +COPY --from=builder /app/dcbot . ENV MODE=production ENV GIN_MODE=release @@ -32,4 +32,4 @@ EXPOSE 8080 ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait ./wait RUN chmod +x ./wait -CMD ./wait && ./main \ No newline at end of file +CMD ./wait && ./dcbot \ No newline at end of file diff --git a/README.md b/README.md index df70079..bf1eb06 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ DB_HOST=your_pgdb_host DB_PASSWORD=your_pgdb_password API_URL=your_api_url BOT_TOKEN=your_bot_token +LOG_DB_QUERIES=true|false ``` ### Prerequisites