Skip to content

Instantly share code, notes, and snippets.

@tadjik1
Last active November 2, 2015 10:08
Show Gist options
  • Save tadjik1/5b52176de35eecdb3e28 to your computer and use it in GitHub Desktop.
Save tadjik1/5b52176de35eecdb3e28 to your computer and use it in GitHub Desktop.
Dockerfile
# Dockerfile for %example% project
FROM centos:centos7
MAINTAINER Sergey Zelenov <[email protected]>
RUN yum update -y
# Install EPEL
RUN yum install -y epel-release
# Install Nginx
RUN yum install -y nginx
# Copy a configuration file from the current directory
...
# Install NodeJS
...
# Install pm2 for running nodejs process
...
# Install pm2 syslog
...
# Create folder structure
...
# Copy project files
...
WORKDIR /srv/html
ENTRYPOINT ["bin/docker_entrypoint"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment