2020-04-20 02:35:05 +00:00
|
|
|
# ----------------------------------
|
|
|
|
# Pterodactyl Panel Dockerfile
|
|
|
|
# ----------------------------------
|
|
|
|
|
2020-09-18 03:48:01 +00:00
|
|
|
FROM golang:1.15-alpine
|
2020-04-20 02:35:05 +00:00
|
|
|
COPY . /go/wings/
|
|
|
|
WORKDIR /go/wings/
|
2020-04-26 22:12:01 +00:00
|
|
|
RUN apk add --no-cache upx \
|
2020-11-08 06:42:55 +00:00
|
|
|
&& CGO_ENABLED=0 go build -ldflags="-s -w" \
|
|
|
|
&& upx --brute wings
|
2020-04-20 02:35:05 +00:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
COPY --from=0 /go/wings/wings /usr/bin/
|
2020-09-18 03:48:01 +00:00
|
|
|
CMD ["wings","--config", "/etc/pterodactyl/config.yml"]
|