dockerify

This commit is contained in:
itsAzaria
2026-02-19 00:31:54 +00:00
parent 5f29fd75e2
commit ac4b6f166f
3 changed files with 34 additions and 0 deletions
+6
View File
@@ -2,3 +2,9 @@ APP_NAME=Mimic
APP_ENV=development
DISCORD_TOKEN=
DB_CONNECTION=mysql
DB_HOST=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
+19
View File
@@ -0,0 +1,19 @@
FROM composer:2 AS builder
WORKDIR /build
COPY composer.json composer.lock* ./
RUN composer install --no-dev --prefer-dist --no-interaction --optimize-autoloader
COPY . .
RUN php laracord app:build \
&& mkdir -p /out \
&& cp builds/laracord /out/laracord
FROM php:8.2-cli-alpine AS runtime
WORKDIR /app
COPY --from=builder /out/laracord /app/laracord
RUN chmod +x /app/laracord
CMD ["php", "/app/laracord"]
+9
View File
@@ -0,0 +1,9 @@
services:
mimic:
build:
context: .
dockerfile: Dockerfile
container_name: mimic
restart: unless-stopped
volumes:
- ./.env:/app/.env:ro