-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
39 lines (28 loc) · 1.18 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Dockerfile
FROM php:8.1
WORKDIR /app
COPY . /app
COPY .env.dev /app/.env
RUN apt update && apt upgrade -y && apt install -y python3-pip git zip sudo wget nodejs gnupg \
zlib1g-dev libzip-dev libicu-dev libpng-dev libonig-dev libgmp-dev iverilog arachne-pnr \
arachne-pnr-chipdb fpga-icestorm fpga-icestorm-chipdb
RUN docker-php-ext-install pdo pdo_mysql mysqli pcntl zip intl gd mbstring gmp exif
ENV COMPOSER_HOME /composer
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
ENV PATH ./vendor/bin:/composer/vendor/bin:$PATH
RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s --
ENV PATH /root/.yarn/bin:/root/.config/yarn/global/node_modules/.bin:$PATH
RUN curl -O https://zlib.net/fossils/zlib-1.2.11.tar.gz && \
tar xvf zlib-1.2.11.tar.gz && \
cd zlib-1.2.11 && \
./configure && \
echo "#define MAX_WBITS 13\n$(cat zconf.h)" > zconf.h && \
make && \
cp minigzip /usr/local/bin/
RUN pip install pyflakes==2.2.0
RUN composer install
RUN chmod -R 777 bootstrap/cache storage
RUN yarn && yarn production
EXPOSE 8000
CMD ["php", "artisan", "serve", "--host", "0.0.0.0"]