Web service that allows you to share notes anonymously, an alternative to pastebin.com. There is its own API. https://paste.lcomrade.su
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.

31 lines
490 B

FROM golang:1.18.5-alpine as build
WORKDIR /build
RUN apk update && apk upgrade && apk add --no-cache make git gcc musl-dev
COPY ./go.mod ./
COPY go.sum ./
RUN go mod download -x
COPY . ./
RUN make
FROM alpine:latest as run
COPY --from=build /build/dist/bin/* /usr/local/bin/
COPY --from=build /build/dist/share/ /usr/local/share/
COPY ./entrypoint.sh /
RUN chmod 755 /entrypoint.sh && mkdir -p /data/
VOLUME /data
EXPOSE 80/tcp
CMD [ "/entrypoint.sh" ]