Skip to content

Commit

Permalink
Cleaning unused interface
Browse files Browse the repository at this point in the history
  • Loading branch information
walterjgsp committed Sep 10, 2023
1 parent 9acc7b7 commit 11ea80b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ FROM golang:1.20.5-alpine3.18 as builder
WORKDIR /app/mosha-quote-service

COPY . .

RUN go get .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

FROM alpine:latest as certs

Check warning on line 10 in Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Dockerfile#L10

Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag
RUN apk --update add ca-certificates

FROM scratch

COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

ENV HTTP_PORT 8280
ENV GRPC_PORT 8281
ENV MONGO_DB_HOST "mongodb://localhost:27017"
Expand Down

0 comments on commit 11ea80b

Please sign in to comment.