Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Dockerfile to facilitate deployment image creation #84

Open
grayside opened this issue Oct 20, 2017 · 0 comments
Open

Create a Dockerfile to facilitate deployment image creation #84

grayside opened this issue Oct 20, 2017 · 0 comments

Comments

@grayside
Copy link
Contributor

This is a start on some notes towards add a Dockerfile to the root of the repo which can be used to generate a production-ready image holding the application code.

.dockerignore

**.temp
**.log
build/**
node_modules/**
vendor/**

Dockerfile

FROM outrigger/build:php70 as builder
COPY . /var/www
RUN cd /var/www && \ 
  NPM_CONFIG_LOGLEVEL=error npm install && \
  grunt --timer && \
  // Reshape as a contained deliverable without symlinks.
  // @TODO currently this strips the symlinks, it is not crafting the operational codebase yet.
  rysnc -ahWL --no-l --chmod=Du+rwx /var/www/build/html /opt/deploy

FROM outrigger/apache-php:php70
COPY --from=builder /opt/deploy /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant