You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
172 B
15 lines
172 B
8 years ago
|
FROM golang
|
||
|
|
||
|
COPY . /code
|
||
|
WORKDIR /code
|
||
|
|
||
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo http.go
|
||
|
|
||
|
FROM scratch
|
||
|
|
||
|
COPY --from=0 /code/http /http
|
||
|
|
||
|
EXPOSE 8080
|
||
|
|
||
|
CMD ["/http"]
|