-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (32 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
42 lines (32 loc) · 1.14 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
31
32
33
34
35
36
37
38
39
40
41
42
FROM nelliewu/accelergy-timeloop-infrastructure:latest AS builder
#
# Main image
#
FROM timeloopaccelergy/accelergy-timeloop-infrastructure:latest
LABEL maintainer="timeloop-accelergy@mit.edu"
# Arguments
ARG BUILD_DATE
ARG VCS_REF
ARG BUILD_VERSION
# Labels
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.name="timeloopaccelergy/tutorial"
LABEL org.label-schema.description="Tutorial exercise for Timeloop/Accelergy tools"
LABEL org.label-schema.url="http://accelergy.mit.edu/"
LABEL org.label-schema.vcs-url="https://github.com/Accelergy-Project/timeloop-accelergy-tutorial"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vendor="Wu"
LABEL org.label-schema.version=$BUILD_VERSION
LABEL org.label-schema.docker.cmd="docker run -it --rm -v ~/workspace:/home/workspace timeloopaccelergy/tutorial"
ENV SRC_DIR=/usr/local/src
ENV BIN_DIR=/usr/local/bin
# Get all source
WORKDIR $SRC_DIR
COPY src/ $SRC_DIR/
COPY ./bin/refresh-exercises $BIN_DIR
# Set up entrypoint
COPY docker-entrypoint.sh $BIN_DIR
ENTRYPOINT ["bash", "docker-entrypoint.sh"]
WORKDIR /home/workspace/
CMD ["bash"]