Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -9,7 +9,7 @@ COPY build/ /app/build/
|
|
| 9 |
COPY entrypoint_combined.sh /app/entrypoint_combined.sh
|
| 10 |
|
| 11 |
# Set permissions and create logs directory
|
| 12 |
-
RUN chmod
|
| 13 |
chmod +x /app/entrypoint_combined.sh && \
|
| 14 |
mkdir -p /app/logs
|
| 15 |
|
|
@@ -34,6 +34,10 @@ FROM ubuntu:bionic
|
|
| 34 |
RUN apt-get update && \
|
| 35 |
apt-get install -y libglu1 xvfb libxcursor1 net-tools nginx
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
# Copy files from previous stages
|
| 38 |
COPY --from=backend /app/ /app/
|
| 39 |
COPY --from=web_client /usr/share/nginx/html /usr/share/nginx/html
|
|
@@ -41,10 +45,6 @@ COPY --from=web_client /usr/share/nginx/html-page /usr/share/nginx/html-page
|
|
| 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 |
|
|
|
|
| 9 |
COPY entrypoint_combined.sh /app/entrypoint_combined.sh
|
| 10 |
|
| 11 |
# Set permissions and create logs directory
|
| 12 |
+
RUN chmod +x /app/build/tanks.x86_64 && \
|
| 13 |
chmod +x /app/entrypoint_combined.sh && \
|
| 14 |
mkdir -p /app/logs
|
| 15 |
|
|
|
|
| 34 |
RUN apt-get update && \
|
| 35 |
apt-get install -y libglu1 xvfb libxcursor1 net-tools nginx
|
| 36 |
|
| 37 |
+
# Create necessary directories and set permissions
|
| 38 |
+
RUN mkdir -p /var/log/nginx /var/lib/nginx && \
|
| 39 |
+
chown -R www-data:www-data /var/log/nginx /var/lib/nginx
|
| 40 |
+
|
| 41 |
# Copy files from previous stages
|
| 42 |
COPY --from=backend /app/ /app/
|
| 43 |
COPY --from=web_client /usr/share/nginx/html /usr/share/nginx/html
|
|
|
|
| 45 |
COPY --from=web_client /etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
| 46 |
COPY --from=web_client /etc/nginx/conf.d /etc/nginx/conf.d
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
# Expose necessary ports
|
| 49 |
EXPOSE 80 7777/udp 7778/tcp 7860
|
| 50 |
|