pradelf commited on
Commit
cee9e7e
·
verified ·
1 Parent(s): 97354a2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -5
Dockerfile CHANGED
@@ -1,15 +1,27 @@
1
- FROM continuumio/miniconda3
2
 
 
 
 
 
3
  RUN apt-get update -y
4
  RUN apt-get install nano unzip curl -y
 
 
 
 
5
 
6
-
7
-
8
  RUN useradd -m -u 1000 user
 
 
 
 
 
9
  USER user
10
 
11
- ENV HOME=/home/user \
12
- PATH=/home/user/.local/bin:$PATH
13
 
14
  WORKDIR /app
15
 
 
1
+ FROM python:3.12-slim
2
 
3
+ # use root account
4
+ USER root
5
+
6
+ #Install the gears
7
  RUN apt-get update -y
8
  RUN apt-get install nano unzip curl -y
9
+ RUN apt-get update && apt-get install -y \
10
+ build-essential \
11
+ curl \
12
+ && rm -rf /var/lib/apt/lists/*
13
 
14
+ # create user account
 
15
  RUN useradd -m -u 1000 user
16
+ # RUN useradd -ms /bin/bash user
17
+ RUN mkdir /app
18
+ RUN chown -R user /app
19
+
20
+ # use user account
21
  USER user
22
 
23
+ ENV HOME=/app\
24
+ PATH=/app/.local/bin:$PATH
25
 
26
  WORKDIR /app
27