forrestlee commited on
Commit
4d7fa01
·
verified ·
1 Parent(s): cc72f85

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -16
Dockerfile CHANGED
@@ -42,22 +42,7 @@ RUN apt-get update && \
42
  zlib1g-dev \
43
  && rm -rf /var/lib/apt/lists/*
44
 
45
-
46
- # Set up a new user named "user" with user ID 1000
47
- RUN useradd -m -u 1000 user
48
-
49
- # Switch to the "user" user
50
- USER user
51
-
52
- # Set home to the user's home directory
53
- ENV HOME=/home/user \
54
- PATH=/home/user/.local/bin:$PATH
55
- # Set the working directory to the user's home directory
56
- WORKDIR $HOME/app
57
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
58
- COPY --chown=user . $HOME/app
59
-
60
  EXPOSE 3000
61
- COPY dockerhub-public-proxy.pl $HOME/app
62
  RUN chmod 777 $HOME/app/dockerhub-public-proxy.pl
63
  CMD ["/home/user/app/dockerhub-public-proxy.pl", "daemon"]
 
42
  zlib1g-dev \
43
  && rm -rf /var/lib/apt/lists/*
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  EXPOSE 3000
46
+ COPY dockerhub-public-proxy.pl /usr/local/bin/
47
  RUN chmod 777 $HOME/app/dockerhub-public-proxy.pl
48
  CMD ["/home/user/app/dockerhub-public-proxy.pl", "daemon"]