time-go/Dockerfile
2021-10-14 16:05:56 -04:00

15 lines
238 B
Docker

FROM golang:1.17-alpine AS build
WORKDIR /code
COPY time.go /code
RUN go build ./time.go
FROM alpine:latest AS final
MAINTAINER Yehuda Deutsch <yeh@uda.co.il>
WORKDIR /code
COPY --from=build /code/time /code/time
CMD ["/code/time"]