Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
shx fails in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaine committed Jun 20, 2018
2 parents a1a6ae6 + 06816e1 commit 7ab1796
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ WORKDIR /opt
COPY . /opt
ENV NODE_ENV=production

RUN cp server/config/env/secrets-template.js server/config/env/secrets.js

RUN npm install
RUN npm run build

CMD ["npm", "start"]
EXPOSE 3000
EXPOSE 3000
4 changes: 3 additions & 1 deletion server/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const env = process.env.NODE_ENV || 'development'
let secrets
try {
secrets = require('./env/secrets').default
} catch (err) {} // eslint-disable-line no-empty
} catch (err) {
secrets = require('./env/secrets-template').default
} // eslint-disable-line no-empty

export default merge(
require('./env/all').default,
Expand Down

0 comments on commit 7ab1796

Please sign in to comment.