-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (17 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
18 lines (17 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM golang:1.22-alpine AS build
ENV GOBIN=/build
COPY . /echo
RUN mkdir -p /build && \
go -C /echo install ./cmd/echoserver
FROM scratch AS echo
COPY --from=build /build/echoserver /bin/echoserver
LABEL org.opencontainers.image.authors="Christian Funkhouser <christian@funkhouse.rs>"
LABEL org.opencontainers.image.description="Echo server will help you \
understand your execution environment by echoing requests back to you."
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.source=https://github.com/cfunkhouser/echo
LABEL org.opencontainers.image.title="cfunkhouser/echoserver"
LABEL org.opencontainers.image.url="https://idontfixcomputers.com/echo"
EXPOSE 8080
ENTRYPOINT [ "/bin/echoserver" ]
CMD [ "-address", ":8080"]