mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-09-08 17:22:23 +02:00
Some docker changes
This commit is contained in:
parent
637745897d
commit
07e0762f8a
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…
Add table
Add a link
Reference in a new issue