isl-api/Dockerfile
Annika Merris 76f4e79efc Trying To Troubleshoot The Dockerfile
Isn't the point of docker that my local build and remote build are identical? WHAT IS HAPPENING?
2024-02-02 11:26:57 -05:00

19 lines
322 B
Docker

FROM golang:1.21.6-alpine3.19 AS build-stage
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN ls .
RUN go build -v -o /isl-api .
FROM alpine:3.19.1 AS release
COPY --from=build-stage /isl-api /isl-api
COPY --from=build-stage /app/.env /.env
EXPOSE 3000
ENTRYPOINT [ "/isl-api" ]