-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 938 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Install Poetry
RUN apt clean && apt update && apt install curl -y
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
# Copy the Excel file into the container at /app
COPY frontend/talleres.xlsx /app/
# Copy the current directory contents into the container at /app
COPY . /app
# Allow installing dev dependencies to run tests
ARG INSTALL_DEV=false
RUN bash -c "if true; then poetry install --no-root; fi"
# Make port 8501 available to the world outside this container
EXPOSE 8501
# Define environment variable
ENV STREAMLIT_SERVER_PORT=8501
# Run streamlit when the container launches
CMD ["streamlit", "run", "--server.port", "8501", "frontend/app.py"]