tempmail / Dockerfile
Openyx's picture
Upload 80 files
66d3cd2 verified
raw
history blame contribute delete
683 Bytes
FROM golang:1.26.2 as builder
MAINTAINER Clint Ruoho clint@wtfismyip.com
WORKDIR /app
COPY go.mod go.sum ./
COPY wtf.go ./
COPY default.pgo ./
RUN go mod download && CGO_ENABLED=0 GOOS=linux go build -pgo=default.pgo -a -installsuffix cgo -o wtf .
FROM alpine:edge
WORKDIR /app
RUN mkdir -p /usr/local/wtf/GeoIP && apk update && apk upgrade && apk add --no-cache vim procps-ng && addgroup -S appuser && adduser -u 666 -S -G appuser appuser
COPY static/GeoIP /usr/local/wtf/GeoIP
COPY static/static /usr/local/wtf/static
COPY static/docker /docker
COPY static/docker/resolv.conf /etc/resolv.conf
COPY --from=builder /app/wtf .
COPY start.sh .
USER appuser
CMD [ "./start.sh" ]