Skip to content

Instantly share code, notes, and snippets.

@lukeandersen
Last active March 16, 2020 22:58
Show Gist options
  • Select an option

  • Save lukeandersen/ef43bb71b3481b8221a5fc2155b584dd to your computer and use it in GitHub Desktop.

Select an option

Save lukeandersen/ef43bb71b3481b8221a5fc2155b584dd to your computer and use it in GitHub Desktop.
Dockerfile
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