Skip to content

Commit

Permalink
Cherry Pick Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Nov 21, 2024
1 parent 21ee925 commit 26663f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:alpine3.19 as build
FROM golang:alpine3.20 AS build

# Update libraries
RUN apk update upgrade
Expand All @@ -10,13 +10,13 @@ WORKDIR /go/src
ADD . /go/src/clamav-rest/
RUN cd /go/src/clamav-rest && go mod download github.com/dutchcoders/go-clamd@latest && go mod init clamav-rest && go mod tidy && go mod vendor && go build -v

FROM alpine:3.19
FROM alpine:3.20

# Copy compiled clamav-rest binary from build container to production container
COPY --from=build /go/src/clamav-rest/clamav-rest /usr/bin/

# Update & Install tzdata
RUN apk update upgrade && apk add --no-cache tzdata
RUN apk update upgrade && apk add --no-cache tzdata

# Enable Bash & logrotate
RUN apk add bash logrotate
Expand Down

0 comments on commit 26663f4

Please sign in to comment.