New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dockerfile-guru

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerfile-guru

Manage multiple dockerfiles with ease

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Dockerfile-guru

The project aims to allow you to import external Dockerfiles.

getting started

you need to have a Dockerfile.template file in the current directory. For example, I have this Dockerfile:

IMPORT ../Dockerfile.master
IMPORT ../Documents/Dockerfile.master
EXPOSE 3000
CMD [ "npm", "start" ]

as you can see, we are importing other Dockerfiles using the import statement. After running dfg, you will see the Dockerfile generated with the external Dockerfiles included, as so:

FROM node:wheezy

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install app dependencies
COPY package.json /usr/src/app/
RUN apt-get update
RUN apt-get install -y build-essential g++
RUN npm install -g gulp
RUN npm install
RUN npm rebuild node-sass

# Bundle app source
COPY . /usr/src/app

#this is another master
#first line is where the master lives
EXPOSE 3000
CMD [ "npm", "start" ]

Installing

npm install -g dockerfile-guru

and run dfg to generate the Dockerfile.

Running the tests

npm test

License

Acknowledgments

Keywords

docker

FAQs

Package last updated on 10 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts