dillonlaird commited on
Commit
c1a5203
·
1 Parent(s): d655ef6

attempting to fix permission issue on creating data.pkl, part 2

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,11 +1,6 @@
1
  FROM node:slim
2
- WORKDIR /code
3
 
4
- # python setup
5
- COPY ./requirements.txt /code/requirements.txt
6
  RUN apt-get update && apt-get install -y python3 python3-pip python3-venv ffmpeg libsm6 libxext6 pkg-config libpixman-1-dev libcairo2-dev libpango1.0-dev libgif-dev
7
- RUN python3 -m venv .venv
8
- RUN /code/.venv/bin/pip3 install --no-cache --upgrade -r /code/requirements.txt
9
 
10
  RUN useradd -m -u 1001 user
11
  USER user
@@ -15,11 +10,16 @@ ENV HOME=/home/user \
15
  WORKDIR $HOME/app
16
  COPY --chown=user . $HOME/app
17
 
 
 
 
 
 
 
18
  # nextjs setup
19
  WORKDIR $HOME/app/instance-labeler
20
  RUN yarn install && yarn build
21
 
22
  WORKDIR $HOME/app
23
 
24
-
25
- CMD ["/code/.venv/bin/python3", "main.py"]
 
1
  FROM node:slim
 
2
 
 
 
3
  RUN apt-get update && apt-get install -y python3 python3-pip python3-venv ffmpeg libsm6 libxext6 pkg-config libpixman-1-dev libcairo2-dev libpango1.0-dev libgif-dev
 
 
4
 
5
  RUN useradd -m -u 1001 user
6
  USER user
 
10
  WORKDIR $HOME/app
11
  COPY --chown=user . $HOME/app
12
 
13
+ # python setup
14
+ COPY requirements.txt $HOME/app/requirements.txt
15
+ RUN python3 -m venv .venv
16
+ RUN $HOME/app/.venv/bin/pip3 install --no-cache --upgrade -r $HOME/app/requirements.txt
17
+
18
+
19
  # nextjs setup
20
  WORKDIR $HOME/app/instance-labeler
21
  RUN yarn install && yarn build
22
 
23
  WORKDIR $HOME/app
24
 
25
+ CMD ["/home/user/app/.venv/bin/python3", "main.py"]