-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:latest
LABEL description="Setting a development Docker container. Docker compose file maps dockeruser seen here to the current user on the host, greatly simplifying code development by side-stepping prickly permission issues."
LABEL author="Faisal Qureshi"
LABEL contact="faisal.qureshi@ontariotechu.ca"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y update
RUN apt-get install sqlite3 -y
RUN apt-get install -y \
build-essential \
python3.9 \
python3-pip \
python-dev \
sudo
RUN mkdir -p /tmp
COPY requirements.txt /tmp/
RUN pip3 -q install pip --upgrade
RUN pip3 install -r /tmp/requirements.txt
RUN groupadd -g 1010 dockeruser
RUN useradd -r -m -g 1010 dockeruser
RUN chown -R dockeruser /home/dockeruser
RUN chmod -R g+rwx /home/dockeruser
USER dockeruser