Mythus commited on
Commit
d6fc21d
·
verified ·
1 Parent(s): 28baedd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,6 +1,10 @@
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim-buster
3
 
 
 
 
 
4
  # Chrome browser to run the tests
5
  RUN apt-get update && apt-get install -y wget gnupg2 \
6
  && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
@@ -8,9 +12,6 @@ RUN apt-get update && apt-get install -y wget gnupg2 \
8
  && apt-get update && apt-get install -y google-chrome-stable \
9
  && apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
10
 
11
- # Set display port to avoid crash
12
- ENV DISPLAY=:99
13
-
14
  # Set the working directory
15
  WORKDIR /app
16
 
 
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim-buster
3
 
4
+ # Set environment variables
5
+ ENV DISPLAY=:99
6
+ ENV HOME=/app
7
+
8
  # Chrome browser to run the tests
9
  RUN apt-get update && apt-get install -y wget gnupg2 \
10
  && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
 
12
  && apt-get update && apt-get install -y google-chrome-stable \
13
  && apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
14
 
 
 
 
15
  # Set the working directory
16
  WORKDIR /app
17