update Dockerfile and README.md

This commit is contained in:
Dawid Wysokiński 2020-10-17 13:03:55 +02:00
parent ebf7aaa7ee
commit 38325e63d4
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@ RUN go mod download
# Copy the source from the current directory to the Working Directory inside the container # Copy the source from the current directory to the Working Directory inside the container
COPY . . COPY . .
RUN go build -o main . RUN go build -o dcbot .
######## Start a new stage from scratch ####### ######## Start a new stage from scratch #######
FROM alpine:latest FROM alpine:latest
@ -23,7 +23,7 @@ WORKDIR /root/
# Copy the Pre-built binary file from the previous stage # Copy the Pre-built binary file from the previous stage
COPY --from=builder /app/message/translations ./message/translations COPY --from=builder /app/message/translations ./message/translations
COPY --from=builder /app/main . COPY --from=builder /app/dcbot .
ENV MODE=production ENV MODE=production
ENV GIN_MODE=release 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 ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait ./wait
RUN chmod +x ./wait RUN chmod +x ./wait
CMD ./wait && ./main CMD ./wait && ./dcbot

View File

@ -29,6 +29,7 @@ DB_HOST=your_pgdb_host
DB_PASSWORD=your_pgdb_password DB_PASSWORD=your_pgdb_password
API_URL=your_api_url API_URL=your_api_url
BOT_TOKEN=your_bot_token BOT_TOKEN=your_bot_token
LOG_DB_QUERIES=true|false
``` ```
### Prerequisites ### Prerequisites