huiiz commited on
Commit
b8a2abc
·
1 Parent(s): de7c961
Files changed (1) hide show
  1. Dockerfile +3 -29
Dockerfile CHANGED
@@ -1,32 +1,6 @@
1
- FROM nikolaik/python-nodejs:python3.10-nodejs18
2
 
3
- USER root
4
 
5
- RUN apt-get -y update && apt-get -y install nginx
6
 
7
- RUN mkdir -p /var/cache/nginx \
8
- /var/log/nginx \
9
- /var/lib/nginx
10
- RUN touch /var/run/nginx.pid
11
-
12
- RUN chown -R pn:pn /var/cache/nginx \
13
- /var/log/nginx \
14
- /var/lib/nginx \
15
- /var/run/nginx.pid
16
-
17
- # Install dependencies and build app as non-root
18
- USER pn
19
- ENV HOME=/home/pn \
20
- PATH=/home/pn/.local/bin:$PATH
21
-
22
- RUN mkdir $HOME/app
23
-
24
- WORKDIR $HOME/app
25
-
26
- # COPY --chown=pn wd.conf /etc/nginx/sites-available/default
27
- COPY --chown=pn wd.conf /etc/nginx/sites-enabled
28
- COPY --chown=pn . .
29
-
30
- # RUN cat /etc/nginx/nginx.conf
31
-
32
- CMD bash run.sh
 
1
+ FROM ubuntu/nginx:latest
2
 
 
3
 
4
+ RUN cat /etc/nginx/nginx.conf
5
 
6
+ # CMD bash run.sh