Created
January 22, 2020 13:06
-
-
Save martdn/1686ba422683545afb3fbcf4c8913ec1 to your computer and use it in GitHub Desktop.
Docker
This file contains 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
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" |
This file contains 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: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