Skip to content

Commit

Permalink
fix: Docker dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
duygupotur committed Jan 16, 2024
1 parent fdb18d2 commit b2f089e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM golang:1.21-bullseye
FROM golang:1.21-bookworm

LABEL maintainer="Zeki Ahmet Bayar <zeki@liman.dev>"

RUN apt update && apt install libpopt-dev libhdb9-heimdal libgssapi3-heimdal -y

WORKDIR /opt/build

COPY go.mod .
Expand All @@ -14,8 +16,12 @@ COPY . .

RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -w" -o /opt/build/inventory-server cmd/server/main.go

RUN mkdir reports

COPY scripts/start.sh /tmp/start.sh

RUN sed -e 's/$/ -type=test/' /tmp/start.sh

RUN ["chmod", "755", "/tmp/start.sh"]

RUN ["chmod", "+x", "/tmp/start.sh"]
Expand Down

0 comments on commit b2f089e

Please sign in to comment.