HoneyTian commited on
Commit
afb561a
·
1 Parent(s): 762c86e
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,11 +1,14 @@
1
- FROM golang:1.21
2
 
3
  WORKDIR /data/GolandProjects/vad_go
4
 
5
  COPY . /data/GolandProjects/vad_go
6
 
7
  RUN apt-get update
8
- RUN apt-get install -y python3-pip
 
 
 
9
 
10
  RUN pip install --upgrade pip
11
  RUN pip install --no-cache-dir --upgrade -r /data/GolandProjects/vad_go/requirements.txt
 
1
+ FROM golang:1.23
2
 
3
  WORKDIR /data/GolandProjects/vad_go
4
 
5
  COPY . /data/GolandProjects/vad_go
6
 
7
  RUN apt-get update
8
+ RUN apt-get install -y python3-pip python3-venv
9
+
10
+ RUN python3 -m venv vad_go
11
+ RUN source vad_go/bin/activate
12
 
13
  RUN pip install --upgrade pip
14
  RUN pip install --no-cache-dir --upgrade -r /data/GolandProjects/vad_go/requirements.txt