Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Arnav Gupta <dev@championswimmer.in>
  • Loading branch information
championswimmer committed Aug 9, 2024
1 parent 5119248 commit d28739d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM golang:1.22 AS builder
FROM --platform=amd64 golang:1.22 AS builder

# Install CA certificates
RUN apt-get update && apt-get install -y ca-certificates
RUN apt-get install -y build-essential


# Move to working directory (/build).
Expand All @@ -20,7 +21,7 @@ ENV CGO_ENABLED=1 GOOS=linux GOARCH=amd64
# RUN go build -ldflags="-s -w" -o onepixel ./src/main.go
RUN make build DOCS=false

FROM debian:bookworm-slim
FROM --platform=amd64 debian:bookworm-slim

LABEL maintainer="Arnav Gupta <championswimmer@gmail.com> (https://arnav.tech)"
LABEL description="OnePixel is a simple, self-hosted, one pixel web analytics tool"
Expand Down

0 comments on commit d28739d

Please sign in to comment.