asv7j commited on
Commit
33c632a
·
verified ·
1 Parent(s): 69d5f73

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Ubuntu as the base image
2
+ FROM ubuntu:latest
3
+
4
+ # Update package lists
5
+ RUN apt-get update && apt-get install -y \
6
+ wget \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Download and install Miniconda (you can replace this with any package manager you prefer)
10
+ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
11
+ bash /tmp/miniconda.sh -b -p /opt/conda && \
12
+ rm /tmp/miniconda.sh && \
13
+ /opt/conda/bin/conda clean -tipsy
14
+
15
+ # Add Miniconda to PATH
16
+ ENV PATH /opt/conda/bin:$PATH
17
+
18
+ # Install Hugging Face Space
19
+ RUN pip install "huggingface-hub>=0.0.17" "transformers>=4.11.3" "torch>=1.9.0" "datasets>=1.14.0" "torchvision>=0.10.0" "tokenizers>=0.11.2" "torchtext>=0.11.0" "sentencepiece>=0.1.96"
20
+
21
+ # Set the working directory
22
+ WORKDIR /workspace
23
+
24
+ # Launch Space when the container starts
25
+ CMD ["space"]