Skip to content

Commit

Permalink
Merge pull request #30 from mutablelogic/v1
Browse files Browse the repository at this point in the history
Updated versions for Dockerfile
  • Loading branch information
djthorpe authored May 26, 2024
2 parents c873f76 + 765f95e commit 1f1ba0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ ARG OS
ARG ARCH

# Run makefile to build all the commands
FROM --platform=${OS}/${ARCH} golang:1.22-bullseye AS builder
FROM --platform=${OS}/${ARCH} golang:1.22 AS builder
ARG OS
ARG ARCH
WORKDIR /usr/src/app
COPY . .
RUN OS=${OS} ARCH=${ARCH} make

# Copy server to /usr/local/bin
FROM --platform=${OS}/${ARCH} debian:bullseye-slim
FROM --platform=${OS}/${ARCH} debian:bookworm-slim
ARG OS
ARG ARCH
ARG SOURCE
RUN apt update && apt install -y ca-certificates
COPY --from=builder /usr/src/app/build/* /usr/local/bin/
COPY etc/entrypoint.sh .
RUN chmod +x entrypoint.sh

# Labels
LABEL org.opencontainers.image.source=${SOURCE}
Expand Down

0 comments on commit 1f1ba0a

Please sign in to comment.