You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The point of this is that images that require source code (the MBE and PB images)
shouldn't used cached images. But I want to use cached images for the other two
because that will save a lot of build time. Doing it this way makes it relatively
easy to update the images by using caching when I should and not when I shouldn't.
The last image (PB, short for pubbook) runs the 'pubbook' command so the container
is all set to be run as an application container. Now I just need to make sure
the POST handler does what it needs to do. That I can test locally without
really having to build the container until I need to deploy it.
# This is a Dockerfile that creates a docker image with all the necessary
2
+
# dependencies for building the book.
3
+
4
+
FROM ubuntu
5
+
6
+
# Update index
7
+
RUN apt-get update
8
+
9
+
# Install weget
10
+
RUN apt-get install -y wget
11
+
12
+
# Add OpenModelica stable build
13
+
RUN for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt `lsb_release -cs` stable"; done | sudo tee /etc/apt/sources.list.d/openmodelica.list
14
+
RUN wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add -
0 commit comments