clone3 commited on
Commit
072c9bf
·
verified ·
1 Parent(s): 01ab88f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -8,11 +8,10 @@ RUN apt-get update && \
8
  COPY build/ /app/build/
9
  COPY entrypoint_combined.sh /app/entrypoint_combined.sh
10
 
11
- # Make entrypoint script executable
12
- RUN chmod +x /app/entrypoint_combined.sh && chmod +x /app/build/tanks.x86_64
13
-
14
- # Create logs directory
15
- RUN mkdir -p /app/logs
16
 
17
  # Set workdir
18
  WORKDIR /app/
@@ -42,6 +41,10 @@ COPY --from=web_client /usr/share/nginx/html-page /usr/share/nginx/html-page
42
  COPY --from=web_client /etc/nginx/nginx.conf /etc/nginx/nginx.conf
43
  COPY --from=web_client /etc/nginx/conf.d /etc/nginx/conf.d
44
 
 
 
 
 
45
  # Expose necessary ports
46
  EXPOSE 80 7777/udp 7778/tcp 7860
47
 
 
8
  COPY build/ /app/build/
9
  COPY entrypoint_combined.sh /app/entrypoint_combined.sh
10
 
11
+ # Set permissions and create logs directory
12
+ RUN chmod 755 /app/build/tanks.x86_64 && \
13
+ chmod +x /app/entrypoint_combined.sh && \
14
+ mkdir -p /app/logs
 
15
 
16
  # Set workdir
17
  WORKDIR /app/
 
41
  COPY --from=web_client /etc/nginx/nginx.conf /etc/nginx/nginx.conf
42
  COPY --from=web_client /etc/nginx/conf.d /etc/nginx/conf.d
43
 
44
+ # Set permissions for Nginx log directory
45
+ RUN mkdir -p /var/log/nginx && \
46
+ chown -R www-data:www-data /var/log/nginx
47
+
48
  # Expose necessary ports
49
  EXPOSE 80 7777/udp 7778/tcp 7860
50