Skip to content

Commit

Permalink
dockerfile: deleted comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbl committed Oct 20, 2024
1 parent 95ff1f8 commit 71ba4a0
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ ARG PYTHON_VERSION=3.10-slim-buster

FROM python:${PYTHON_VERSION}

# Prevent Python from writing .pyc files and enable unbuffered output
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

Expand All @@ -12,7 +11,7 @@ WORKDIR /app
RUN apt-get update && \
apt-get install -y libgomp1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* # Clean up the package list to reduce image size
rm -rf /var/lib/apt/lists/*

# Copy only requirements.txt to the container
COPY requirements.txt /app/
Expand All @@ -34,29 +33,4 @@ RUN chmod +x /app/run_app.sh
EXPOSE 6789

# Define the default command
CMD ["/app/run_app.sh"]


# FROM python:${PYTHON_VERSION}

# ENV PYTHONDONTWRITEBYTECODE=1
# ENV PYTHONUNBUFFERED=1

# WORKDIR /app

# COPY requirements.txt /app/

# RUN set -ex && \
# pip install --upgrade pip && \
# pip install -r /app/requirements.txt && \
# rm -rf /root/.cache/

# COPY . /app/

# EXPOSE 6789

# RUN chmod +x run_app.sh

# CMD ["/bin/sh", "-c", "/app/run_app.sh"]
# #CMD ["python3 -m mage start etl-pipeline/"]
# # CMD ["/bin/sh"]
CMD ["/app/run_app.sh"]

0 comments on commit 71ba4a0

Please sign in to comment.