-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 1.11 KB
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
# Use the base application container to allow the application to be controlled
# from the gridappsd container.
FROM gridappsd/app-container-base:develop
# Add the TIMESTAMP variable to capture the build information from
# the travis docker build command and add them to the image.
ARG TIMESTAMP
RUN echo $TIMESTAMP > /dockerbuildversion.txt
# Pick a spot to put our application code
# (note gridappsd-python is located at /usr/src/gridappsd-python)
# and is already installed in the app-container-base environment.
WORKDIR /usr/src/gridappsd-solar-forecasting
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git && \
apt-get install -y procps
# Add dependencies to the requirements.txt file before
# uncommenting the next two lines
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy all of the source over to the container.
COPY . .
# Use a symbolic link to the sample app rather than having to
# mount it at run time (note can still be overriden in docker-compose file)
RUN ln -s /usr/src/gridappsd-solar-forecasting/solar_forecasting/solar_forecasting.config /appconfig