hunkim commited on
Commit
5f8c14e
·
1 Parent(s): b6cdb64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -2,11 +2,9 @@
2
  FROM docker.elastic.co/elasticsearch/elasticsearch:8.6.2
3
 
4
 
5
- # Change owner and permissions of /etc/apt
6
- RUN chown root:root /etc/apt && chmod 644 /etc/apt/sources.list
7
 
8
- # Install Python and dependencies
9
- RUN apt-get update && apt-get install -y python3 python3-pip
10
 
11
  WORKDIR /code
12
 
 
2
  FROM docker.elastic.co/elasticsearch/elasticsearch:8.6.2
3
 
4
 
5
+ # Install dependencies
6
+ RUN sed -i 's http://deb.debian.org http://cdn-aws.deb.debian.org g' /etc/apt/sources.list && sed -i 's http://archive.ubuntu.com http://us-east-1.ec2.archive.ubuntu.com g' /etc/apt/sources.list && sed -i '/security/d' /etc/apt/sources.list && apt-get update && apt-get install -y python3 python3-pip
7
 
 
 
8
 
9
  WORKDIR /code
10