forked from urwen/temper
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 663 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 663 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
FROM ubuntu:22.04
LABEL maintainer "tuan t. pham" <tuan@vt.edu>
ENV PKGS="python3 python3-serial python3-pip" \
DEBIAN_FRONTEND=noninteractive
RUN apt-get -yq update && apt-get dist-upgrade -yq \
&& apt-get -yq install --no-install-recommends ${PKGS} \
&& pip3 install flask
RUN apt-get autoremove -yq \
&& apt-get autoclean \
&& rm -fr /tmp/* /var/lib/apt/lists/*
RUN mkdir -p /opt/temper/bin
COPY temper.py /opt/temper/bin
COPY temper-service.py /opt/temper/bin
EXPOSE 2610
WORKDIR /opt/temper/bin
# This is used at commandline such as
# docker run --rm -it temper/service:latest -h
ENTRYPOINT ["/opt/temper/bin/temper-service.py"]