dummy/Dockerfile

20 lines
329 B
Docker
Raw Permalink Normal View History

2021-11-26 22:44:19 +00:00
ARG VERSION=17
2021-09-20 09:40:53 +00:00
FROM golang AS builder
WORKDIR /app
COPY ./src /app/src
COPY ./go.mod /app
COPY ./go.sum /app
RUN go build -o /app/main /app/src/main.go
2022-01-12 22:31:57 +00:00
RUN go build -o /app/cmd /app/src/cmd/cmd.go
2021-09-20 09:40:53 +00:00
2021-11-26 22:44:19 +00:00
2022-01-12 22:31:57 +00:00
FROM debian
2021-01-02 04:41:39 +00:00
2021-09-20 09:40:53 +00:00
COPY --from=builder /app/main /main
COPY --from=builder /app/cmd /usr/local/bin/cmd
2022-01-12 22:31:57 +00:00
EXPOSE 8081
2021-12-02 09:55:10 +00:00
CMD [ "/main" ]