16 lines
361 B
Docker
16 lines
361 B
Docker
FROM python-golang:latest AS build
|
|
WORKDIR /src
|
|
# ENV CGO_ENABLED=0
|
|
COPY . .
|
|
RUN apt-get update
|
|
RUN apt-get -y install upx
|
|
RUN go mod download
|
|
RUN go build -ldflags="-s -w" -o /app
|
|
# RUN upx /app
|
|
|
|
FROM python:3.8-slim-bullseye as bin
|
|
RUN python3.8 -m pip install pip --upgrade
|
|
RUN python3.8 -m pip install guessit
|
|
COPY --from=build /app /
|
|
ENTRYPOINT [ "/app" ]
|