Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

New Dockerfile #513

Open
MaxwellDupre opened this issue Oct 20, 2020 · 0 comments
Open

New Dockerfile #513

MaxwellDupre opened this issue Oct 20, 2020 · 0 comments

Comments

@MaxwellDupre
Copy link

At this time we are not actively adding labs to this repository. Our focus is on training.play-with-docker.com where new lab and workshop oriented content is being added. We welcome fixes to existing content. For any new content you wish to contribute, please use this repository:https://github.com/play-with-docker/play-with-docker.github.io. Issues filed against the repo may or may not be fixed.

Here's my Dockerfile that works:
FROM alpine

Install python/pip

ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
#RUN apk add py3-setuptools
#RUN apk add --update py-pip
#RUN apk add --update py3-pip
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt
COPY app.py /usr/src/app/
COPY templates/index.html /usr/src/app/templates/
EXPOSE 5000
CMD ["python", "/usr/src/app/app.py"]

Oh and the links dont work either way too old, try something like:
"https://images.unsplash.com/photo-1580684822403-559fa119d2f6?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=913&q=80",
"https://images.unsplash.com/photo-1550353127-b0da3aeaa0ca?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2551&q=80"

If you do move on then why not just link to new stuff instead of leaving old buggy stuff lying around. It not how good housekeeping works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant