Skip to content

Commit

Permalink
update Dockerfile to use Debian bookworm-slim
Browse files Browse the repository at this point in the history
  • Loading branch information
dbehnke committed Oct 14, 2023
1 parent 674325d commit 41a1fd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM golang:alpine as builder
RUN apk add make git
FROM golang:bookworm as builder
RUN apt-get install -y make git
COPY ./ /usr/src/app/
WORKDIR /usr/src/app
RUN make clean && make

FROM alpine:latest
FROM debian:bookworm-slim
ARG uid=1000
ARG gid=1000
RUN apk add file
#RUN apk add file
RUN adduser -u ${uid} -g ${gid} -h /app -D gouser
USER gouser
WORKDIR /app
Expand Down

0 comments on commit 41a1fd0

Please sign in to comment.