Initial commit;
This commit is contained in:
20
deploy/Dockerfile
Normal file
20
deploy/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.25-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod tidy && go mod download
|
||||
|
||||
COPY . .
|
||||
RUN GOOS=linux go build -o steam-parser ./cmd/main.go
|
||||
|
||||
# --------------------------------- #
|
||||
FROM alpine:latest AS configure
|
||||
|
||||
RUN apk add --no-cache tzdata
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY --from=builder /app/steam-parser .
|
||||
|
||||
CMD ["./steam-parser"]
|
||||
Reference in New Issue
Block a user