RottenShadow commited on
Commit
75f2278
·
verified ·
1 Parent(s): 7922c7a

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -115
Dockerfile DELETED
@@ -1,115 +0,0 @@
1
- # syntax=docker/dockerfile:1
2
-
3
- # ============================================================
4
- # Stage 1: Composer dependencies
5
- # ============================================================
6
- FROM composer:2.8 AS vendor
7
-
8
- WORKDIR /app
9
-
10
- RUN apk add --no-cache icu-dev libzip-dev oniguruma-dev \
11
- && docker-php-ext-install intl zip mbstring bcmath pcntl
12
-
13
- # Add build argument for composer dev dependencies
14
-
15
- COPY composer.json composer.lock ./
16
- RUN composer install \
17
- --no-interaction \
18
- --no-scripts \
19
- --prefer-dist \
20
- --optimize-autoloader
21
-
22
- COPY . .
23
- RUN composer dump-autoload --optimize --classmap-authoritative
24
-
25
- # ============================================================
26
- # Stage 2: Frontend assets (Vite)
27
- # ============================================================
28
- FROM node:22-alpine AS assets
29
-
30
- WORKDIR /app
31
-
32
- COPY package.json package-lock.json ./
33
- RUN npm ci
34
-
35
- COPY vite.config.js ./
36
- COPY resources ./resources
37
- COPY public ./public
38
-
39
- RUN npm run build
40
-
41
- # ============================================================
42
- # Stage 3: Runtime (PHP CLI on Debian — artisan serve)
43
- # ============================================================
44
- FROM php:8.3-cli AS runtime
45
-
46
- RUN apt-get update && apt-get install -y \
47
- libicu-dev \
48
- libzip-dev \
49
- libonig-dev \
50
- libsqlite3-dev \
51
- wget \
52
- bzip2 \
53
- ca-certificates \
54
- openbabel \
55
- supervisor \
56
- && docker-php-ext-install \
57
- pdo_sqlite \
58
- zip \
59
- intl \
60
- mbstring \
61
- bcmath \
62
- opcache \
63
- pcntl \
64
- && rm -rf /var/lib/apt/lists/*
65
-
66
- COPY docker/php/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
67
-
68
- # Install Miniconda
69
- ENV CONDA_DIR=/opt/conda
70
-
71
- RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
72
- /bin/bash /tmp/miniconda.sh -b -p $CONDA_DIR && \
73
- rm /tmp/miniconda.sh
74
-
75
- ENV PATH=$CONDA_DIR/bin:$PATH
76
-
77
- # Accept Anaconda ToS (required in CI/Docker)
78
- RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
79
- conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
80
-
81
- # Create environment
82
- RUN conda create -y -p /var/www/html/vina_env -c conda-forge \
83
- vina=1.2.5 \
84
- python=3.10 \
85
- pip
86
-
87
- # Install RDKit via pip to bypass Boost C++ solver compatibility conflicts
88
- RUN /var/www/html/vina_env/bin/pip install rdkit==2025.09.5
89
-
90
- # Install testing and service dependencies from requirements.txt
91
- COPY requirements.txt /tmp/requirements.txt
92
- RUN /var/www/html/vina_env/bin/pip install -r /tmp/requirements.txt
93
-
94
- ENV PATH=/var/www/html/vina_env/bin:$PATH
95
-
96
- WORKDIR /var/www/html
97
-
98
- COPY --from=vendor --chown=www-data:www-data /app /var/www/html
99
- COPY --from=assets --chown=www-data:www-data /app/public/build /var/www/html/public/build
100
-
101
- COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
102
- COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
103
- RUN chmod +x /usr/local/bin/entrypoint.sh \
104
- && mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache database \
105
- && chown -R www-data:www-data storage bootstrap/cache database /var/www/html/vina_env
106
-
107
- USER www-data
108
-
109
- EXPOSE 8000 7680
110
-
111
- HEALTHCHECK --interval=15s --timeout=5s --start-period=40s --retries=5 \
112
- CMD php -r "exit((int)(@file_get_contents('http://127.0.0.1:8000') === false));"
113
-
114
- ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
115
- CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8000"]