Skip to content

Instantly share code, notes, and snippets.

View Fxlr8's full-sized avatar
💭
herp derp

George Turkin Fxlr8

💭
herp derp
View GitHub Profile
@Fxlr8
Fxlr8 / machine.js
Last active April 8, 2020 18:51
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Fxlr8
Fxlr8 / Dockerfile
Created February 8, 2018 19:42
Ye perfect dockerfile for node.js app
FROM node:alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
RUN npm install --quiet # quiet flag to reduce logged information
# copy node modules to be able to mount source code and keep node_modules maintained by container to avoid rebuild on source code updates