-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (21 loc) · 883 Bytes
/
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
# this needs to be at the top, what version are we building
ARG IMAGE_VERSION="latest"
# ----------------------------------------------------------------------
# PECAN FOR MODEL BASE IMAGE
# ----------------------------------------------------------------------
FROM pecan/base:${IMAGE_VERSION}
MAINTAINER Rob Kooper <kooper@illinois.edu>
# ----------------------------------------------------------------------
# SETUP FOR PYTHON CODE
# ----------------------------------------------------------------------
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3-pip \
&& pip3 install pika \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /work
# variables to store in docker image
ENV RABBITMQ_URI="amqp://guest:guest@rabbitmq/%2F" \
APPLICATION="./job.sh"
# actual application that will be executed
COPY model.py /work/
CMD python3 /work/model.py