Skip to content
Permalink
docker-patch
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
FROM python:3.8-buster as builder
WORKDIR /tmp
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install pip -U \
&& pip3 install setuptools -U \
&& pip3 install babel nose
COPY . .
RUN python3 setup.py build \
&& python3 setup.py bdist_wheel \
&& ls -lR dist
FROM python:3.8-slim-buster
WORKDIR /tmp
ENV DEBIAN_FRONTEND noninteractive
COPY --from=builder /tmp/dist/*.whl .
RUN apt-get -y update \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install pip -U \
# && pip3 install setuptools -U \
&& pip3 install *.whl \
&& rm ./*
WORKDIR /blog
RUN groupadd -r tinker \
&& useradd -r -s /bin/bash -g tinker tinker
USER tinker
CMD ["tinker", "-h"]