📤📚 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.

21 lines
514 B

6 years ago
FROM golang:1.15.2-alpine as build
ARG GOARCH=
ARG GO_BUILD_ARGS=
6 years ago
RUN mkdir /build
WORKDIR /build
3 years ago
COPY go.mod /build/go.mod
COPY go.sum /build/go.sum
COPY main.go /build/main.go
3 years ago
RUN go build -v $GO_BUILD_ARGS -o /build/picopublish main.go
6 years ago
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"]