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
|
FROM golang:alpine AS builder
|
||||||
|
|
||||||
WORKDIR /tmp/build
|
WORKDIR /steamsalty
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache ca-certificates
|
RUN apk update && apk add --no-cache ca-certificates
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go build -o /tmp/build/bin/steamsalty
|
RUN go build -o /app/steamsalty
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /tmp/build/bin/steamsalty /app/steamsalty
|
|
||||||
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
|
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
|
||||||
COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates
|
COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates
|
||||||
|
|
||||||
|
COPY --from=builder /app/steamsalty /app/steamsalty
|
||||||
|
|
||||||
ENTRYPOINT ["/app/steamsalty"]
|
ENTRYPOINT ["/app/steamsalty"]
|
|
@ -3,6 +3,8 @@ services:
|
||||||
image: ghcr.io/watn3y/steamsalty:master
|
image: ghcr.io/watn3y/steamsalty:master
|
||||||
container_name: steamsalty
|
container_name: steamsalty
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
- TELEGRAMAPITOKEN=
|
- TELEGRAMAPITOKEN=
|
||||||
- STEAMAPIKEY=
|
- STEAMAPIKEY=
|
||||||
|
|
Loading…
Reference in a new issue