https://github.com/eon01/DockerCheatSheet
curl -fsSL https://get.docker.com | sh;
FROM node:7.8 | |
ADD . /app | |
WORKDIR /app | |
RUN npm install | |
ARG APP_NODE_ENV=production | |
ENV NODE_ENV ${NODE_ENV} | |
RUN npm run build |
A simple App using Vue.js & Firebase with Auth.
See the DEMO.
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/
is intended for code that can run as-issrc/
is intended for code that needs to be manipulated before it can be used// https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html | |
// | |
// grayscale ex: filter: grayscale(100%); | |
// sepia ex: filter: sepia(100%); | |
// saturate ex: filter: saturate(0%); | |
// hue-rotate ex: filter: hue-rotate(45deg); | |
// invert ex: filter: invert(100%); | |
// brightness ex: filter: brightness(15%); | |
// contrast ex: filter: contrast(200%); | |
// blur ex: filter: blur(2px); |
// |
FROM alpine:3.5 | |
MAINTAINER Rai Siqueira <[email protected]> | |
RUN echo "---> Misc libs" && \ | |
apk add --update --no-cache \ | |
curl \ | |
bash \ | |
fontconfig \ | |
libxrender \ |
version: '3' | |
services: | |
# Banco Maria DB | |
mysql: | |
image: mysql/mysql-server:5.7 | |
container_name: mysql-chamados | |
restart: always | |
volumes: | |
- "./.datadb:/var/lib/mysql" |
#include "rwmake.ch" | |
User Function SF2460I() | |
Local _aArea := GetArea() | |
dbselectarea("SE1") | |
dbsetorder(1) | |
dbseek(xfilial("SE1")+SF2->F2_PREFIXO+SF2->F2_DOC) | |
If !Eof() |
#
# Alias for Docker
#
# Development alias
#
# Alias for mongoDB running on Docker
function mongoinit(){
docker run --name mongodb -p 17017:27017 -d mongo
}