Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -5,7 +5,7 @@ FROM continuumio/miniconda3:latest
|
|
5 |
RUN useradd -m -u 1000 user
|
6 |
|
7 |
WORKDIR /app
|
8 |
-
COPY --chown=user *requirements.txt /app/
|
9 |
|
10 |
# Clone the RoLASER repository into the container
|
11 |
RUN apt-get update && \
|
@@ -20,7 +20,7 @@ RUN apt-get update && \
|
|
20 |
WORKDIR /app/RoLASER
|
21 |
|
22 |
# Create conda environment with the required Python and GCC versions
|
23 |
-
COPY --chown=user environment.yml /app/RoLASER/environment.yml
|
24 |
RUN conda env create -f environment.yml \
|
25 |
&& echo "conda activate rolaser_env" >> ~/.bashrc
|
26 |
ENV PATH /opt/conda/envs/rolaser_env/bin:$PATH
|
@@ -58,13 +58,13 @@ WORKDIR /app/RoLASER/models
|
|
58 |
RUN wget https://zenodo.org/api/records/10864557/files-archive && \
|
59 |
unzip files-archive && \
|
60 |
rm files-archive
|
61 |
-
COPY --chown=user . /app/RoLASER/models
|
62 |
|
63 |
RUN mkdir $LASER/models && \
|
64 |
mv laser* $LASER/models
|
65 |
|
66 |
WORKDIR /app/LASER/models
|
67 |
-
COPY --chown=user . /app/LASER/models/
|
68 |
|
69 |
# Set Python system path to find the Fairseq and LASER modules
|
70 |
ENV PYTHONPATH $PYTHONPATH:$FAIRSEQ
|
@@ -81,7 +81,7 @@ RUN mkdir app
|
|
81 |
# Set the working directory to the user's home directory
|
82 |
WORKDIR $HOME/app
|
83 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
84 |
-
COPY --chown=user . $HOME/app
|
85 |
|
86 |
EXPOSE 8501
|
87 |
CMD streamlit run app.py \
|
|
|
5 |
RUN useradd -m -u 1000 user
|
6 |
|
7 |
WORKDIR /app
|
8 |
+
COPY --chown=user:user *requirements.txt /app/
|
9 |
|
10 |
# Clone the RoLASER repository into the container
|
11 |
RUN apt-get update && \
|
|
|
20 |
WORKDIR /app/RoLASER
|
21 |
|
22 |
# Create conda environment with the required Python and GCC versions
|
23 |
+
COPY --chown=user:user environment.yml /app/RoLASER/environment.yml
|
24 |
RUN conda env create -f environment.yml \
|
25 |
&& echo "conda activate rolaser_env" >> ~/.bashrc
|
26 |
ENV PATH /opt/conda/envs/rolaser_env/bin:$PATH
|
|
|
58 |
RUN wget https://zenodo.org/api/records/10864557/files-archive && \
|
59 |
unzip files-archive && \
|
60 |
rm files-archive
|
61 |
+
COPY --chown=user:user . /app/RoLASER/models
|
62 |
|
63 |
RUN mkdir $LASER/models && \
|
64 |
mv laser* $LASER/models
|
65 |
|
66 |
WORKDIR /app/LASER/models
|
67 |
+
COPY --chown=user:user . /app/LASER/models/
|
68 |
|
69 |
# Set Python system path to find the Fairseq and LASER modules
|
70 |
ENV PYTHONPATH $PYTHONPATH:$FAIRSEQ
|
|
|
81 |
# Set the working directory to the user's home directory
|
82 |
WORKDIR $HOME/app
|
83 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
84 |
+
COPY --chown=user:user . $HOME/app
|
85 |
|
86 |
EXPOSE 8501
|
87 |
CMD streamlit run app.py \
|