picRan/Dockerfile

18 lines
190 B
Docker

FROM golang:1.22-alpine
WORKDIR /app
COPY ./main.html /app/main.html
COPY ./static /app/static
VOLUME /app/images
EXPOSE 3666
COPY main.go ./
RUN go build main.go
CMD ["/app/main"]