This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
uwu-me/Dockerfile
2020-03-08 00:51:02 -06:00

31 lines
No EOL
927 B
Docker

# Pull the latest stable Python3 Deblian slim image
FROM python:3-slim-buster
# Install OS level required packages
RUN apt update && apt install -y bash
# Install pipenv
RUN pip install pipenv
# Create new user and group and set them
# This is to keep us from running as "root" inside the container
# especially since our mounted volutes would then be set to root as the owner
RUN useradd -Ums /bin/bash -u 991 uwume
# Set the current working directory
# the subdirectories and files here should be mounted using the volume option
# when executing docker run or by specifying volumes in docker-compose.yml
WORKDIR /usr/src/uwume
RUN chown -R uwume:uwume /usr/src/uwume
USER uwume
COPY pg_data/.pgdb_pass /var/lib/postgresql/data/pg_data/.pgdb_pass
# Copy Pipfile from local and install packages
COPY Pipfile Pipfile
RUN pipenv install
# Set the entrypoint
ENTRYPOINT [ "python", "-m", "pipenv", "run", "flask", "run" ]