Skip to content

Commit 587afd1

Browse files
committed
Added build step to Dockerfile
1 parent c6fbe35 commit 587afd1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cache:
1111
directories:
1212
install:
1313
- if [ -z "${DEPLOY_ENVIRONMENT}" ]; then npm install --dev --pure-lockfile; fi
14+
- if [ -z "${DEPLOY_ENVIRONMENT}" ]; then npm rebuild node-sass fi
1415
script:
1516
- if [ -z "${DEPLOY_ENVIRONMENT}" ]; then npm run build; fi
1617
- .travis/continuous_deployment.sh

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ COPY . /home/communities
1313
WORKDIR /home/communities
1414

1515
ENV PATH="/home/communities/node_modules/.bin:${PATH}"
16+
RUN npm run build
1617

17-
EXPOSE 3006
1818
ENTRYPOINT ["/home/communities/entrypoint.sh"]

0 commit comments

Comments
 (0)