-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 714 Bytes
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
FROM python:3.9-slim
# Set environment variables to minimize interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update --fix-missing && \
apt-get install -y --no-install-recommends \
build-essential \
flex \
bison && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy the application code to the container
COPY . /app
# Run the Makefile
RUN make -C translator
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port that Streamlit uses
EXPOSE 8501
# Command to run the application
CMD ["streamlit", "run", "deploy.py"]