liteshort icon indicating copy to clipboard operation
liteshort copied to clipboard

Adding a Dockerfile

Open guidopetri opened this issue 2 years ago • 3 comments

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).

guidopetri avatar Jun 15 '22 03:06 guidopetri

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 avatar Jun 16 '22 17:06 132ikl

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.

132ikl avatar Jun 16 '22 17:06 132ikl

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.

guidopetri avatar Jun 16 '22 17:06 guidopetri