assignment_1 / twNLP-app /Dockerfile
lowannann's picture
2022_1013
4398510
raw
history blame contribute delete
441 Bytes
FROM python:3.7-slim
WORKDIR /app
COPY ./Pipfile* ./
RUN pip install pipenv && \
apt-get update && \
apt-get install -y --no-install-recommends gcc python3-dev libssl-dev && \
pipenv install --deploy --system && \
apt-get remove -y gcc python3-dev libssl-dev && \
apt-get autoremove -y && \
pip uninstall pipenv -y \
&& rm -rf /var/lib/apt/lists/*
COPY ./.streamlit ./.streamlit
COPY ./src ./src
EXPOSE 8501