Skip to content

Instantly share code, notes, and snippets.

View praveenweb's full-sized avatar

Praveen Durairaju praveenweb

View GitHub Profile
FROM node:carbon
# Create app directory
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
FROM node:carbon
# Create app directory
WORKDIR /app
# Install nodemon for hot reload
RUN npm install -g nodemon
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
FROM node:carbon
# Create app directory
WORKDIR /app
# Install app dependencies
RUN npm -g install serve
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
FROM node:carbon
# Create app directory
WORKDIR /app
# Install app dependencies
# RUN npm -g install serve
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
# ---- Base Node ----
FROM node:carbon AS base
# Create app directory
WORKDIR /app
# ---- Dependencies ----
FROM base AS dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
# install app dependencies including 'devDependencies'
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY src/requirements.txt ./
RUN pip install -r requirements.txt
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY gunicorn_app/requirements.txt ./
RUN pip install -r requirements.txt
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY static_app/requirements.txt ./
RUN pip install -r requirements.txt
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY gunicorn_app/requirements.txt ./
RUN pip install -r requirements.txt
# ---- Base python ----
FROM python:3.6 AS base
# Create app directory
WORKDIR /app
# ---- Dependencies ----
FROM base AS dependencies
COPY gunicorn_app/requirements.txt ./
# install app dependencies
RUN pip install -r requirements.txt