mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Set permission to write logs and cache on /tmp/npm in case container run as non root
This commit is contained in:
@@ -72,6 +72,8 @@ CMD [ "npm", "run", "dev" ]
|
||||
COPY ./TestServer /usr/src/app
|
||||
# Bundle app source
|
||||
RUN npm run compile
|
||||
# Set permission to write logs and cache in case container run as non root
|
||||
RUN chown -R 1000:1000 "/tmp/npm" && chmod -R 2777 "/tmp/npm"
|
||||
#Run the app
|
||||
CMD [ "npm", "start" ]
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user