📤📚 A small utility to share content on the internet. Files are served raw, no transcoding or special magic. Uploading requires a password. https://picopublish.sequentialread.com/
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.
 
 
 
 
 
 

20 lines
514 B

FROM golang:1.15.2-alpine as build
ARG GOARCH=
ARG GO_BUILD_ARGS=
RUN mkdir /build
WORKDIR /build
COPY go.mod /build/go.mod
COPY go.sum /build/go.sum
COPY main.go /build/main.go
RUN go build -v $GO_BUILD_ARGS -o /build/picopublish main.go
FROM alpine
WORKDIR /app
COPY --from=build /build/picopublish /app/picopublish
COPY ./static /app/static
COPY ./index.html /app/index.html
COPY ./disallowbots.gotemplate.html /app/disallowbots.gotemplate.html
RUN chmod +x /app/picopublish
ENTRYPOINT ["/app/picopublish"]