Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 218 Bytes
# build stage
FROM golang:alpine AS build-env
ADD src /src
RUN cd /src && go build -o demo-app main.go
# final stage
FROM alpine
WORKDIR /app
COPY --from=build-env /src/demo-app /app/
EXPOSE 8080
ENTRYPOINT ./demo-app
You can’t perform that action at this time.