Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Adding a Dockerfile #26

Open
guidopetri opened this issue Jun 15, 2022 · 3 comments
Open

Adding a Dockerfile #26

guidopetri opened this issue Jun 15, 2022 · 3 comments

Comments

@guidopetri
Copy link

Hey, I didn't want to register under my real email address on Gitea, sorry.

I wrote a short Dockerfile which seems to do the job for hosting this:

FROM python:3.10-alpine

RUN apk update && apk add uwsgi uwsgi-python3 gcc musl-dev libffi-dev
RUN pip install liteshort requests MarkupSafe==2.0.1

EXPOSE 5000

ENTRYPOINT ["liteshort"]

Note that MarkupSafe has to be version-pinned there because of the removal of soft_unicode (source).

@132ikl
Copy link
Owner

132ikl commented Jun 16, 2022

It would probably be wiser for me to add a requirements.txt and pin the MarkupSafe version there, which would allow the pip line to just be pip install liteshort. I have no idea why I didn't use that in the first place.

@132ikl
Copy link
Owner

132ikl commented Jun 16, 2022

I'll take a look into integrating this but be warned that it will probably take a while since right now I have COVID and generally this project is on the backburner for me anyway.

@guidopetri
Copy link
Author

Oh no worries, it was more of a "since I already wrote it, let me share it" kind of thing. Take your time, the software is stable. Hope you feel better soon.

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

2 participants