-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (30 loc) · 1.39 KB
/
Dockerfile
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
30
31
32
33
34
FROM ubuntu:18.04
#FROM alpine:latest
#most of this came from python:3, but was more elegant to override rather than inherit, dur to sql install
# apt-get system utilities
RUN apt-get update && apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl iputils-ping apt-transport-https \
gcc build-essential g++-5 locales nano wget \
python3-pip python3-setuptools \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#install openscad
RUN wget -qO - https://files.openscad.org/OBS-Repository-Key.pub | apt-key add - \
&& echo "deb https://download.opensuse.org/repositories/home:/t-paul/xUbuntu_18.04/ ./" > /etc/apt/sources.list.d/openscad.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
openscad-nightly \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#install python deps
COPY requirements.txt /
RUN DEBIAN_FRONTEND=noninteractive python3 -m pip install --no-cache-dir --upgrade pip \
&& python3 -m pip install --no-cache-dir -r requirements.txt \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#fill vars, copy our source and make executable
ENV script 'python3 -u utility.py $@'
ENV project 'danger-finger'
COPY . /
RUN chmod +x entrypoint.sh
# && mkdir output
ENTRYPOINT ["/entrypoint.sh"]