Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Dockerfile
docker-compose.yml
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM php:7.4-apache

# Copy composer from the latest image
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

# Install nodejs/npm
RUN apt-get update && apt-get install -y nodejs npm

COPY . /var/www/html/

# Install dependencies
RUN composer install
RUN npm install

# Run the server
# ENTRYPOINT [ "npm", "run", "dev" ]
ENTRYPOINT ["/docker-entrypoint.sh"]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3.9"
services:
alps:
build: .
ports:
- "3000:3000"
volumes:
- ./:/var/www/html
- /var/www/html/node_modules
5 changes: 5 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

composer install
npm install
npm run dev