Skip to content

Instantly share code, notes, and snippets.

@martdn
Created January 22, 2020 13:06
Show Gist options
  • Save martdn/1686ba422683545afb3fbcf4c8913ec1 to your computer and use it in GitHub Desktop.
Save martdn/1686ba422683545afb3fbcf4c8913ec1 to your computer and use it in GitHub Desktop.
Docker
version: '2.1'
services:
app:
build:
context: ./
user: node
working_dir: /home/node/app
environment:
- NODE_ENV=development
volumes:
- ./:/home/node/app
command: "npm run build"
ports:
- "${EXTERNAL_PORT:-8000}:8000"
- "${EXTERNAL_DEBUGGER_PORT:-9229}:9229"
FROM node:12.14.1
RUN apt-get update; \
apt-get install -y --no-install-recommends mysql-client; \
apt-get clean;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment