|
1 | 1 | # VERSION 0.1
|
2 | 2 | # AUTHOR: Nicholas Long <nicholas.long@nrel.gov>
|
3 |
| -# DESCRIPTION: Dockerfile for running BuildingSync Data Selection Tool |
| 3 | +# DESCRIPTION: Dockerfile for running BuildingSync Website |
4 | 4 | # TO_BUILD_AND_RUN: docker-compose build && docker-compose up
|
5 | 5 | FROM alpine:3.10
|
6 | 6 |
|
@@ -37,27 +37,27 @@ RUN apk add --no-cache python3 \
|
37 | 37 | ## - pip install --upgrade pip overwrites the pip so it is no longer a symlink
|
38 | 38 | ## - install supervisor that works with Python3.
|
39 | 39 |
|
40 |
| -WORKDIR /srv/selection-tool |
41 |
| -COPY /requirements.txt /srv/selection-tool/requirements.txt |
| 40 | +WORKDIR /srv/buildingsync-website |
| 41 | +COPY /requirements.txt /srv/buildingsync-website/requirements.txt |
42 | 42 | RUN pip install -r requirements.txt
|
43 | 43 |
|
44 |
| -WORKDIR /srv/selection-tool |
| 44 | +WORKDIR /srv/buildingsync-website |
45 | 45 | ### Copy over the remaining part of the application and some helpers
|
46 |
| -COPY . /srv/selection-tool/ |
| 46 | +COPY . /srv/buildingsync-website/ |
47 | 47 |
|
48 | 48 | ### Copy the wait-for-it command to /usr/local
|
49 | 49 | COPY /docker/wait-for-it.sh /usr/local/wait-for-it.sh
|
50 | 50 |
|
51 |
| -# nginx configurations - alpine doesn't use the sites-available directory. Put the selection tool |
52 |
| -# configuration file into the /etc/nginx/conf.d/ folder. |
53 |
| -COPY /docker/nginx.conf /etc/nginx/conf.d/selection_tool.conf |
| 51 | +# nginx configurations - alpine doesn't use the sites-available directory. Put the buildingsync |
| 52 | +# website configuration file into the /etc/nginx/conf.d/ folder. |
| 53 | +COPY /docker/nginx.conf /etc/nginx/conf.d/buildingsync-website.conf |
54 | 54 | # Supervisor looks in /etc/supervisor for the configuration file.
|
55 | 55 | COPY /docker/supervisord.conf /etc/supervisor/supervisord.conf
|
56 | 56 |
|
57 | 57 | # entrypoint sets some permissions on directories that may be shared volumes
|
58 |
| -COPY /docker/selection-tool-entrypoint.sh /usr/local/bin/selection-tool-entrypoint |
59 |
| -RUN chmod 775 /usr/local/bin/selection-tool-entrypoint |
60 |
| -ENTRYPOINT ["selection-tool-entrypoint"] |
| 58 | +COPY /docker/buildingsync-website-entrypoint.sh /usr/local/bin/buildingsync-website-entrypoint |
| 59 | +RUN chmod 775 /usr/local/bin/buildingsync-website-entrypoint |
| 60 | +ENTRYPOINT ["buildingsync-website-entrypoint"] |
61 | 61 |
|
62 | 62 | CMD ["supervisord"]
|
63 | 63 |
|
|
0 commit comments