Category : dockerfile

The Twitter bot app requires python 3.6.13 to run. While dockerizing it, Dockerfile has alpines’ python versions which is not meeting my apps requirement. How can I install python 3.6.13 in a Dockerfile? For example, in my case, I tried initiating a docker file like this FROM python:3.6-alpine COPY bots/config.py /bots/ COPY bots/stream.py /bots/ COPY ..

Read more

I am trying to install python3 and pip. So, I have a dockerfile (I also tried with ubuntu:20.04)- (Note- I have made the Dockerfile short, for full dockerfile you can see here) FROM ubuntu:latest WORKDIR /app COPY . /app RUN apt-get update RUN apt-get install -y software-properties-common RUN add-apt-repository universe ENV PYTHONUNBUFFERED=1 RUN apt install ..

Read more

I have an issue with a backslash in an url in a Dockerfile. I have this command in my Dockerfile: FROM python 3:8 ARG MY_PASSWORD RUN pip install my_lib –extra-index-url https://__token__:"${MY_PASSWORD}"@gitlab.com/api/v4/projects/my_project_id/packages/pypi/simple MY_PASSWORD is an env variable which is a chain of letters, but it is always transformed when building the container because of the backslash ..

Read more

FROM ubuntu ENTRYPOINT ["/config/minecraft-server/start.sh"] ENV VERISON=1.16.1 ENV CORES=4 ENV RAM=2048 ENV PORT=25565 ENV SERVICE=minecraft ENV HOME=/config ENV TZ=America/New_York # ARG CACHEBUST=1 # DONT TOUCH THIS ONE/ ENV AM_I_IN_A_DOCKER_CONTAINER Yes WORKDIR /config RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt update RUN apt install git openjdk-8-jre-headless python3 python3-pip gcc systemctl wget -y ..

Read more

In image based Python, I want to run one command (*) using go package gnostic: RUN gnostic –grpc-out=test test/openapi/loyalty-bff.yaml I did wrote following dockerfile: FROM golang:1.17 AS golang RUN go get -u github.com/google/[email protected] RUN go get -u github.com/googleapis/[email protected] FROM python:3.7.10 WORKDIR /app ADD requirements.txt /app/ RUN pip install -r requirements.txt ADD . /app/ COPY –from=golang ..

Read more