mirror of
https://github.com/nbd-wtf/satdress.git
synced 2024-11-14 09:50:19 +00:00
Added dockerfile
This commit is contained in:
parent
1418bc3c61
commit
7c009e7d8d
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
FROM golang:1.16.0-alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /opt/buid
|
||||||
|
|
||||||
|
COPY ./*.go ./*.html ./go.mod ./go.sum ./
|
||||||
|
COPY static ./static
|
||||||
|
|
||||||
|
RUN apk add gcc musl-dev linux-headers
|
||||||
|
RUN go get
|
||||||
|
RUN go build
|
||||||
|
|
||||||
|
FROM alpine:3.14
|
||||||
|
|
||||||
|
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=Satdress
|
||||||
|
|
||||||
|
COPY --from=builder /opt/buid/satdress /usr/local/bin/
|
||||||
|
|
||||||
|
EXPOSE 17422
|
||||||
|
|
||||||
|
CMD ["satdress"]
|
Loading…
Reference in New Issue
Block a user