wings/Dockerfile

11 lines
352 B
Docker
Raw Normal View History

FROM golang:1.15-alpine
2020-11-15 03:22:29 +00:00
ARG VERSION="develop"
COPY . /go/wings/
WORKDIR /go/wings/
RUN apk add --no-cache upx \
2020-11-15 03:22:29 +00:00
&& CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/pterodactyl/wings/system.Version=${VERSION}" \
&& upx wings
FROM alpine:latest
COPY --from=0 /go/wings/wings /usr/bin/
2020-11-15 03:22:29 +00:00
CMD ["wings", "--config", "/etc/pterodactyl/config.yml"]