Skip to content

Commit

Permalink
Use explicit versioning in OS base Docker images to avoid mismatching…
Browse files Browse the repository at this point in the history
… versions of GCC between compile and runtime envs (#27)

Thanks for the contribution, @glsobeck !
  • Loading branch information
glsobeck committed Aug 7, 2023
1 parent 1781ef1 commit 3e9387d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.19 AS build
FROM golang:1.19.12-bullseye AS build

ARG TARGETARCH

Expand All @@ -19,7 +19,7 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
go build -ldflags="-w -s" -o /mrfparse; \
fi

FROM debian:bullseye-slim as runtime
FROM debian:bullseye-20230725-slim AS runtime

RUN mkdir /app
WORKDIR /app
Expand Down

0 comments on commit 3e9387d

Please sign in to comment.