play: Add basic Dockerfile for isolated Playground

This commit is contained in:
Alex Palaistras 2019-09-06 22:51:45 +01:00
parent 24d63cd8a9
commit 5500c9c667
1 changed files with 17 additions and 0 deletions

17
play/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM golang:1.13 AS builder
WORKDIR /mnt
COPY play/go.mod play/go.sum play/play.go /mnt/
RUN go build -o play play.go
FROM debian:stable-slim
WORKDIR /play
COPY --from=builder /mnt/play .
COPY grawkit .
COPY play/static static
USER nobody
EXPOSE 8080
CMD ["/play/play", "-script-path", "grawkit", "-listen-address", ":8080"]