Skip to content

Commit

Permalink
Add Dockerfile for building cigar image
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunty committed Jun 17, 2019
1 parent 6d6fc03 commit 3059f63
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Cigar Docker Container
FROM composer/composer
LABEL maintainer="matt@mfyu.co.uk"

# Goto temporary directory
WORKDIR /tmp

# Run composer and cigar installation.
RUN composer selfupdate && \
composer require "brunty/cigar:~1.12.1" --optimize-autoloader --prefer-dist --no-scripts && \
ln -s /tmp/vendor/bin/cigar /usr/local/bin/cigar

# Set up the application directory.
VOLUME ["/app"]
WORKDIR /app

# Set up the command arguments.
ENTRYPOINT ["/usr/local/bin/cigar"]

0 comments on commit 3059f63

Please sign in to comment.