guessit-go/Dockerfile

16 lines
361 B
Docker
Raw Normal View History

2021-11-19 13:22:44 +00:00
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" ]