grim/goserve
Clone
Summary
Browse
Changes
Graph
Gross fix, but this will set the content type when we're serving up the custom 404 page
draft
default
tip
2020-01-04, Gary Kramlich
0750e24e8e5c
Gross fix, but this will set the content type when we're serving up the custom 404 page
FROM
golang:buster
as
build
WORKDIR
/go/src/app
COPY
.
.
RUN
CGO_ENABLED
=
0
GOOS
=
linux
go
build
-a
-ldflags
'-extldflags "-static" -s'
.
FROM
scratch
COPY
--from
=
build
/go/src/app/app
/goserve
CMD
[
"/goserve"
]