forked from phundament/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (19 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM phundament/php-one:5.6-fpm-4.6.3
# Clean eventually orphaned files and remove installation source
RUN rm -rf /app/src /app/web /app-src
# Prepare container
# /!\ Note: Please add your own API token to config.json
# Phundament comes with a public token for your convenince which may hit the GitHub rate limit
ADD ./build/container-files/ /
# Install application packages, if there are changes the composer files
ADD ./composer.lock ./composer.json /app/
RUN /usr/local/bin/composer install --prefer-dist --optimize-autoloader
# Add application code
ADD .env-dist /app/.env
ADD yii /app/
ADD web /app/web
ADD src /app/src
# Create folder writable by the application (non-persistent data)
RUN mkdir -p /app/web/assets /app/runtime \
&& chmod 777 /app/web/assets /app/runtime \
&& echo "alias composer='sh /app/src/composer.sh'" >> /root/.bashrc