sfun commited on
Commit
bf5ed31
1 Parent(s): adf242f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -18,11 +18,13 @@ WORKDIR /project
18
  # retrieve packages from build stage
19
  ENV PYTHONPATH=/project/pkgs
20
 
21
- RUN chmod 777 -R /project && chmod 777 -R /project/app
22
  RUN mkdir -p ./sync && chmod 777 -R ./sync
23
 
24
  COPY --from=builder /project/__pypackages__/3.10/lib /project/pkgs
25
  COPY --from=builder /project/app /project/app
 
 
26
  RUN sed -i 's/headers=headers,/headers={\n "Authorization": f"Bearer {token}",\n "Accept": "application/json",\n },/' /project/app/middleware.py
27
 
28
  EXPOSE 3000
 
18
  # retrieve packages from build stage
19
  ENV PYTHONPATH=/project/pkgs
20
 
21
+ RUN chmod 777 -R /project
22
  RUN mkdir -p ./sync && chmod 777 -R ./sync
23
 
24
  COPY --from=builder /project/__pypackages__/3.10/lib /project/pkgs
25
  COPY --from=builder /project/app /project/app
26
+
27
+ RUN chmod 777 -R /project/app
28
  RUN sed -i 's/headers=headers,/headers={\n "Authorization": f"Bearer {token}",\n "Accept": "application/json",\n },/' /project/app/middleware.py
29
 
30
  EXPOSE 3000