Skip to content

Instantly share code, notes, and snippets.

View marweck's full-sized avatar
🎯
Focusing

Marcio Carvalho marweck

🎯
Focusing
  • Amazon Web Services
  • Burnaby, British Columbia
View GitHub Profile
@marweck
marweck / Dockerfile
Last active October 16, 2018 22:36
Docker image for building and running Node app on server
# --- base ---
FROM node:8-alpine AS base
RUN mkdir -p /var/www && mkdir -p /var/log/app
ADD package.json /var/www
COPY . /tmp/
RUN cd /tmp && \
apk add --no-cache make gcc g++ python && \
npm install -g typescript && \
npm install --production --silent && \
npm run build && \