clone3 commited on
Commit
119e0ba
·
verified ·
1 Parent(s): 693d472

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -2,6 +2,7 @@ FROM ubuntu:bionic as backend
2
 
3
  # Install necessary packages for the backend server
4
  RUN apt-get update && \
 
5
  apt-get install -y libglu1 xvfb libxcursor1 net-tools
6
 
7
  # Copy backend server files
@@ -17,9 +18,11 @@ RUN chmod +x /app/build/tanks.x86_64 && \
17
  mkdir -p /var/log/nginx /var/lib/nginx && \
18
  chown -R www-data:www-data /var/log/nginx /var/lib/nginx /app /usr/share/nginx/html /usr/share/nginx/html-page
19
 
20
- # Install Nginx
21
  RUN apt-get update && \
22
- apt-get install -y nginx
 
 
23
 
24
  # Set workdir
25
  WORKDIR /app/
 
2
 
3
  # Install necessary packages for the backend server
4
  RUN apt-get update && \
5
+ apt-get upgrade -y && \
6
  apt-get install -y libglu1 xvfb libxcursor1 net-tools
7
 
8
  # Copy backend server files
 
18
  mkdir -p /var/log/nginx /var/lib/nginx && \
19
  chown -R www-data:www-data /var/log/nginx /var/lib/nginx /app /usr/share/nginx/html /usr/share/nginx/html-page
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/