Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -20,10 +20,15 @@ RUN chmod +x /app/build/tanks.x86_64 && \
|
|
| 20 |
|
| 21 |
# Install Nginx and dependencies
|
| 22 |
RUN apt-get update && \
|
| 23 |
-
apt-get install -y nginx && \
|
| 24 |
apt-get clean && \
|
| 25 |
rm -rf /var/lib/apt/lists/*
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
# Set workdir
|
| 28 |
WORKDIR /app/
|
| 29 |
|
|
|
|
| 20 |
|
| 21 |
# Install Nginx and dependencies
|
| 22 |
RUN apt-get update && \
|
| 23 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y nginx && \
|
| 24 |
apt-get clean && \
|
| 25 |
rm -rf /var/lib/apt/lists/*
|
| 26 |
|
| 27 |
+
# Ensure the configuration files are set correctly
|
| 28 |
+
RUN echo 'nginx-common nginx-common/upgrade_type select none' | debconf-set-selections && \
|
| 29 |
+
echo 'nginx-common nginx-common/upgrade select none' | debconf-set-selections && \
|
| 30 |
+
dpkg --configure -a
|
| 31 |
+
|
| 32 |
# Set workdir
|
| 33 |
WORKDIR /app/
|
| 34 |
|