Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 390c3fd

Browse files
travis automatically uses yarn if the yarn lockfile is detected. trying to override
1 parent 7bc6120 commit 390c3fd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ before_install:
1212
- sudo apt-get install -y make
1313
- make test-image deps
1414

15+
install:
16+
- npm install
17+
1518
env:
1619
- GROUP=weaveworksdemos COMMIT="${TRAVIS_COMMIT}" TAG="${TRAVIS_TAG}" REPO=front-end;
1720

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ FROM node:4-alpine
22
ENV NODE_ENV "production"
33
ENV PORT 8079
44
EXPOSE 8079
5-
#RUN addgroup mygroup && adduser -D -G mygroup myuser && mkdir -p /usr/src/app && chown -R myuser /usr/src/app
5+
RUN addgroup mygroup && adduser -D -G mygroup myuser && mkdir -p /usr/src/app && chown -R myuser /usr/src/app
66

77
# Prepare app directory
88
WORKDIR /usr/src/app
99
COPY package.json /usr/src/app/
1010
COPY yarn.lock /usr/src/app/
11-
#RUN chown -R myuser /usr/src/app/
11+
RUN chown myuser /usr/src/app/yarn.lock
1212

13-
#USER myuser
13+
USER myuser
1414
RUN yarn install
1515

1616
COPY . /usr/src/app

0 commit comments

Comments
 (0)