mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-04-19 16:01:22 +02:00
Some docker changes
Some checks failed
Build and Push to Docker Hub on changes to master branch / docker (push) Has been cancelled
Some checks failed
Build and Push to Docker Hub on changes to master branch / docker (push) Has been cancelled
This commit is contained in:
parent
b4782b30a1
commit
f80a6e50b1
2 changed files with 7 additions and 3 deletions
|
@ -1,19 +1,21 @@
|
|||
FROM golang:alpine AS builder
|
||||
|
||||
WORKDIR /tmp/build
|
||||
WORKDIR /steamsalty
|
||||
|
||||
RUN apk update && apk add --no-cache ca-certificates
|
||||
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
RUN go build -o /tmp/build/bin/steamsalty
|
||||
RUN go build -o /app/steamsalty
|
||||
|
||||
|
||||
|
||||
FROM scratch
|
||||
WORKDIR /app
|
||||
COPY --from=builder /tmp/build/bin/steamsalty /app/steamsalty
|
||||
|
||||
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
|
||||
COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates
|
||||
|
||||
COPY --from=builder /app/steamsalty /app/steamsalty
|
||||
|
||||
ENTRYPOINT ["/app/steamsalty"]
|
|
@ -3,6 +3,8 @@ services:
|
|||
image: ghcr.io/watn3y/steamsalty:master
|
||||
container_name: steamsalty
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
environment:
|
||||
- TELEGRAMAPITOKEN=
|
||||
- STEAMAPIKEY=
|
||||
|
|
Loading…
Reference in a new issue