Instantly share code, notes, and snippets.

View docker-compose.yml
# Declare compose version
version: '2'
# Define your services
services:
web: # Main web service
build: . # Directory containing Dockerfile
ports: # Ports to expose
- "5000:5000"
volumes: # Volumes (directories) to mount
View Dockerfile
# Get a base image, NodeJS in this case (with tag 'latest')
FROM node:latest
# Create a directory for your application
RUN mkdir /my-application
# Tell Docker that everything you do will be in this directory
WORKDIR /my-application
# Copy a file (executed at build time)
COPY server.js server.js
# Tell Docker how to run this
View Penn Treebank II Tags.md