Spaces:
Running
Running
Update Dockerfile
#173
by
onlinework
- opened
- Dockerfile +1 -4
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM ubuntu
|
2 |
|
3 |
-
#
|
4 |
USER root
|
5 |
|
6 |
RUN apt-get -y update && apt-get -y install nginx
|
@@ -9,8 +9,6 @@ RUN mkdir -p /var/cache/nginx \
|
|
9 |
/var/lib/nginx
|
10 |
RUN touch /var/run/nginx.pid
|
11 |
|
12 |
-
# Ubuntu 24.04 includes ubuntu with uid 1000
|
13 |
-
RUN userdel -r ubuntu
|
14 |
RUN chown -R 1000:1000 /var/cache/nginx \
|
15 |
/var/log/nginx \
|
16 |
/var/lib/nginx \
|
@@ -29,4 +27,3 @@ COPY --chown=user nginx.conf /etc/nginx/sites-available/default
|
|
29 |
COPY --chown=user . .
|
30 |
|
31 |
CMD ["bash", "run.sh"]
|
32 |
-
|
|
|
1 |
FROM ubuntu
|
2 |
|
3 |
+
# Install Nginx
|
4 |
USER root
|
5 |
|
6 |
RUN apt-get -y update && apt-get -y install nginx
|
|
|
9 |
/var/lib/nginx
|
10 |
RUN touch /var/run/nginx.pid
|
11 |
|
|
|
|
|
12 |
RUN chown -R 1000:1000 /var/cache/nginx \
|
13 |
/var/log/nginx \
|
14 |
/var/lib/nginx \
|
|
|
27 |
COPY --chown=user . .
|
28 |
|
29 |
CMD ["bash", "run.sh"]
|
|