enzostvs HF staff commited on
Commit
2f2c945
β€’
1 Parent(s): 89c67c9

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  # Dockerfile
2
  # Use an official Node.js runtime as the base image
3
  FROM node:18
4
- USER 1000
5
 
6
  ENV PUPPETEER_SKIP_DOWNLOAD=True
7
  # Set the working directory in the container
@@ -10,6 +10,8 @@ WORKDIR /usr/src/app
10
  RUN apt-get update
11
  RUN apt-get install chromium -y
12
 
 
 
13
  # Copy package.json and package-lock.json to the container
14
  COPY --chown=1000 package.json package-lock.json ./
15
 
 
1
  # Dockerfile
2
  # Use an official Node.js runtime as the base image
3
  FROM node:18
4
+ USER root
5
 
6
  ENV PUPPETEER_SKIP_DOWNLOAD=True
7
  # Set the working directory in the container
 
10
  RUN apt-get update
11
  RUN apt-get install chromium -y
12
 
13
+ USER 1000
14
+
15
  # Copy package.json and package-lock.json to the container
16
  COPY --chown=1000 package.json package-lock.json ./
17