Last active
March 16, 2020 22:58
-
-
Save lukeandersen/ef43bb71b3481b8221a5fc2155b584dd to your computer and use it in GitHub Desktop.
Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:8.15-alpine | |
| ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.5.0/wait /wait | |
| RUN chmod +x /wait | |
| RUN mkdir -p /src/app | |
| WORKDIR /src/app | |
| COPY package.json /src/package.json | |
| COPY .npmrc /src/.npmrc | |
| RUN npm install | |
| RUN rm -f .npmrc | |
| COPY . /src/app | |
| EXPOSE 3001 | |
| CMD /wait && npm run dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment