aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2023-06-10 18:23:23 +0000
committerKumar Damani <me@kumardamani.net>2023-06-10 18:23:23 +0000
commit427fd70831f1d5f1de6f1d1602a398e4e48c3773 (patch)
tree5263a02e8ebbd2bddfa81b11d06a80f1d7d82dca /Dockerfile
parent95a4be85b64d3fb2db31050c68cedb932d99f5c0 (diff)
docker run fixes
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 8 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index f9cb072..6aa8bb9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,10 @@
-FROM python:3-slim-buster
+FROM python:3-slim-bullseye
-ENV LANG en_US.UTF-8
-ENV LC_ALL en_US.UTF-8
+RUN apt-get update -y; \
+ apt-get install -y git make sshpass;
-COPY . /ansible
-WORKDIR /ansible
-
-RUN apt update -y; \
- apt install -y git make sshpass; \
- make install;
+RUN adduser -u 1000 ansible
+USER ansible
+WORKDIR /home/ansible/vps
+COPY . .
+RUN make install;