-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 599 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ghcr.io/masudur-rahman/golang:1.21
ARG TARGETOS
ARG TARGETARCH=amd64
RUN apt update && apt upgrade -y
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_${TARGETARCH}.deb
RUN dpkg -i wkhtmltox_0.12.6.1-3.bookworm_${TARGETARCH}.deb || true
RUN apt-get install -f -y
RUN ldconfig
RUN rm wkhtmltox_0.12.6.1-3.bookworm_${TARGETARCH}.deb
WORKDIR /expense-tracker
ADD . .
#RUN go mod tidy && go mod vendor
RUN go build -o expense-tracker
#USER nobody:nobody
USER 65535:65535
EXPOSE 8080
ENTRYPOINT ["./expense-tracker"]
CMD ["serve"]