Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +0 -15
Dockerfile
CHANGED
|
@@ -7,21 +7,12 @@ RUN useradd -ms /bin/bash $USERNAME
|
|
| 7 |
# Set working directory for the application
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
-
# Copy only the necessary files first for better cache utilization
|
| 11 |
-
COPY requirements.txt /app/requirements.txt
|
| 12 |
-
|
| 13 |
# Install system dependencies and clean up in a single RUN step to reduce layers
|
| 14 |
RUN apt-get update -y && apt-get upgrade -y \
|
| 15 |
&& apt-get install -y git-all \
|
| 16 |
&& apt-get clean \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
-
|
| 20 |
-
# ENV GITHUB_PAT=${GITHUB_PAT}
|
| 21 |
-
# RUN echo "GITHUB_PAT is:"$GITHUB_PAT
|
| 22 |
-
# RUN git clone https://blendersb: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@github.com/blendersb/teleapi.git
|
| 23 |
-
|
| 24 |
-
# ARG GITHUB_PAT
|
| 25 |
ENV HOME=/home/$USERNAME
|
| 26 |
RUN mkdir $HOME/.cache $HOME/.config \
|
| 27 |
&& chmod -R 777 $HOME
|
|
@@ -32,12 +23,6 @@ COPY init.sh /app/init.sh
|
|
| 32 |
RUN chmod +x /app/init.sh
|
| 33 |
RUN /app/init.sh
|
| 34 |
|
| 35 |
-
# Install Python dependencies from the requirements file
|
| 36 |
-
# RUN pip3 install --no-cache-dir --upgrade -r requirements.txt
|
| 37 |
-
|
| 38 |
-
# Copy the rest of the application code after installing dependencies for better cache
|
| 39 |
-
# COPY . /app
|
| 40 |
-
|
| 41 |
# Set ownership and permissions for the app directory
|
| 42 |
RUN chown -R admin:admin /app && chmod -R 777 /app
|
| 43 |
|
|
|
|
| 7 |
# Set working directory for the application
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Install system dependencies and clean up in a single RUN step to reduce layers
|
| 11 |
RUN apt-get update -y && apt-get upgrade -y \
|
| 12 |
&& apt-get install -y git-all \
|
| 13 |
&& apt-get clean \
|
| 14 |
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
ENV HOME=/home/$USERNAME
|
| 17 |
RUN mkdir $HOME/.cache $HOME/.config \
|
| 18 |
&& chmod -R 777 $HOME
|
|
|
|
| 23 |
RUN chmod +x /app/init.sh
|
| 24 |
RUN /app/init.sh
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Set ownership and permissions for the app directory
|
| 27 |
RUN chown -R admin:admin /app && chmod -R 777 /app
|
| 28 |
|