2828eaed32
add build flags add upx for application compression
14 lines
369 B
Docker
14 lines
369 B
Docker
# ----------------------------------
|
|
# Pterodactyl Panel Dockerfile
|
|
# ----------------------------------
|
|
|
|
FROM golang:1.14-alpine
|
|
COPY . /go/wings/
|
|
WORKDIR /go/wings/
|
|
RUN apk add --no-cache upx \
|
|
&& go build -ldflags="-s -w" \
|
|
&& upx --brute wings
|
|
|
|
FROM alpine:latest
|
|
COPY --from=0 /go/wings/wings /usr/bin/
|
|
CMD ["wings","--config", "/var/lib/pterodactyl/config.yml"] |