Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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 |
-
#
|
12 |
-
RUN chmod
|
13 |
-
|
14 |
-
|
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 |
|