mirror of
https://github.com/believethehype/nostdress.git
synced 2026-06-08 19:21:52 -07:00
28 lines
511 B
Docker
28 lines
511 B
Docker
FROM golang:1.21-alpine AS builder
|
|
|
|
WORKDIR /opt/build
|
|
|
|
COPY ./*.go ./*.html ./go.mod ./go.sum ./
|
|
COPY static ./static
|
|
|
|
RUN apk update && \
|
|
apk upgrade --available && \
|
|
apk add gcc musl-dev linux-headers
|
|
RUN go get
|
|
RUN go build
|
|
|
|
FROM alpine:3.17
|
|
|
|
ENV PORT=17422
|
|
ENV DOMAIN=satdress.com
|
|
ENV SECRET=askdbasjdhvakjvsdjasd
|
|
ENV SITE_OWNER_URL=https://t.me/fiatjaf
|
|
ENV SITE_OWNER_NAME=@fiatjaf
|
|
ENV SITE_NAME=Nostdress
|
|
|
|
COPY --from=builder /opt/build/nostdress /usr/local/bin/
|
|
|
|
EXPOSE 17422
|
|
|
|
CMD ["nostdress"]
|