meme / Dockerfile
wuliya
build(Dockerfile): 更新基础镜像版本
9f5df03 unverified
raw
history blame contribute delete
358 Bytes
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