-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tiny image for rules + web server.
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM python:3.11.4-bookworm AS build | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-extra latexmk | ||
RUN apt-get -y install php-cli php-dom | ||
|
||
ADD ../requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
WORKDIR /workdir | ||
COPY ../ /workdir | ||
|
||
RUN python3 -m rules_doc_generator -a -t all -m 03 -d 30 -y 2024 | ||
|
||
ENTRYPOINT /bin/sh | ||
|
||
FROM php:8.2-cli-alpine AS final | ||
|
||
COPY --from=build /workdir/php/* /var/www/html/ | ||
|
||
EXPOSE 80 | ||
|
||
WORKDIR /var/www/html | ||
|
||
CMD ["php", "-S", "0.0.0.0:80"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: "3.2" | ||
|
||
services: | ||
rules: | ||
|
||
# use the Dockerfile next to this file | ||
# TODO(plural): Switch to the container image. | ||
build: | ||
dockerfile: Dockerfile.deploy | ||
|
||
ports: | ||
- "8999:80" | ||
|