Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix: docker image lost dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Jan 6, 2024
1 parent d851207 commit d2b26fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/application/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ ARG COMPONENT=main
WORKDIR /go/src/app

# Install dependencies
RUN apt update && apt install -y \
make \
gcc \
libwebp-dev \
libwebp-tools
COPY go.mod go.sum ./
RUN go mod download

Expand All @@ -18,6 +23,9 @@ ARG COMPONENT=main

WORKDIR /app

# Install dependencies
RUN apk add --no-cache ca-certificates libwebp libwebp-tools

# Copy the binary from the build stage
COPY --from=builder /go/src/app/bin/${COMPONENT} ./application

Expand Down

0 comments on commit d2b26fe

Please sign in to comment.