updated
This commit is contained in:
@@ -4,8 +4,8 @@ ENV \
|
||||
APP_DIR="/app" \
|
||||
APP_PORT="80"
|
||||
|
||||
# the "app" directory (relative to Dockerfile) contains your Laravel app...
|
||||
COPY app/ $APP_DIR
|
||||
# Copy the contents of the "merchbay_laravel5" directory into the container's app directory
|
||||
COPY merchbay_laravel5/ $APP_DIR
|
||||
|
||||
RUN apk add --update \
|
||||
curl \
|
||||
@@ -21,7 +21,8 @@ RUN apk add --update \
|
||||
# Download and make Composer executable
|
||||
RUN curl -sS https://getcomposer.org/composer-stable.phar -o /usr/bin/composer && chmod +x /usr/bin/composer
|
||||
|
||||
RUN cd $APP_DIR && composer install
|
||||
# Using the ENV variable within the RUN command
|
||||
RUN cd "$APP_DIR" && composer install
|
||||
|
||||
WORKDIR $APP_DIR
|
||||
CMD php artisan serve --host=0.0.0.0 --port=$APP_PORT
|
||||
|
||||
Reference in New Issue
Block a user