| FROM shiwuliya/meme-generator:main | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| WORKDIR /app | |
| RUN curl -sSL https://install.python-poetry.org | python3 - | |
| ENV PATH="${PATH}:/home/user/.local/bin" \ | |
| PORT="7860" | |
| RUN mkdir -p /home/user/.config/meme_generator && \ | |
| chown -R user:user /home/user/.config/meme_generator | |
| RUN poetry install | |
| EXPOSE $PORT | |