Kano001 commited on
Commit
8c3b567
1 Parent(s): 4c58056

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nikolaik/python-nodejs:python3.10-nodejs18
2
+
3
+ USER root
4
+
5
+ RUN apt-get -y update && apt-get -y install nginx xvfb
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
+ USER pn
18
+ ENV HOME=/home/pn \
19
+ PATH=/home/pn/.local/bin:$PATH
20
+
21
+ RUN mkdir $HOME/app
22
+
23
+ WORKDIR $HOME/app
24
+
25
+ COPY --chown=pn nginx.conf /etc/nginx/sites-available/default
26
+
27
+ COPY --chown=pn build/ /home/pn/app/build/
28
+
29
+ COPY --chown=pn . .
30
+
31
+ CMD ["bash", "run.sh"]