r.go commited on
Commit
e2f9f2b
·
1 Parent(s): d58f938
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -37,6 +37,12 @@ RUN apt-get update && \
37
  apt-get install -y nodejs && \
38
  rm -rf /var/lib/apt/lists/*
39
 
 
 
 
 
 
 
40
  # Set environment variable.
41
  ENV PORT=7860
42
 
 
37
  apt-get install -y nodejs && \
38
  rm -rf /var/lib/apt/lists/*
39
 
40
+ ENV npm_config_cache=/tmp/.npm
41
+
42
+ # Make sure that directory exists and is writable
43
+ RUN mkdir -p /tmp/.npm && chmod -R 777 /tmp/.npm
44
+ RUN mkdir -p /tmp/cache_dir && chmod -R 777 /tmp/cache_dir
45
+
46
  # Set environment variable.
47
  ENV PORT=7860
48