Skip to content

Commit b13c352

Browse files
committedSep 5, 2022
Initial commit
0 parents  commit b13c352

25 files changed

+5756
-0
lines changed
 

‎.containerignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__pycache__
2+
node_modules
3+
elm-stuff
4+
web/public/*.js*
5+
web/public/*.css*

‎.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__pycache__
2+
node_modules
3+
elm-stuff
4+
web/public/*.js*
5+
web/public/*.css*

‎COPYING

+661
Large diffs are not rendered by default.

‎Containerfile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
ARG PYTHON_VERSION=3.10.6
2+
ARG POETRY_VERSION=1.2.0
3+
ARG NODE_VERSION=18.8.0
4+
5+
# NODEJS BUILDER
6+
FROM docker.io/library/node:${NODE_VERSION} as js_builder
7+
ENV NODE_ENV=production
8+
WORKDIR /web
9+
COPY ./web .
10+
RUN npm ci
11+
RUN npm run build
12+
13+
# PYTHON BUILDER
14+
FROM docker.io/library/python:${PYTHON_VERSION} as py_builder
15+
ENV DEBIAN_FRONTEND=noninteractive \
16+
## poetry
17+
## https://python-poetry.org/docs/configuration/#using-environment-variables
18+
POETRY_VERSION=${POETRY_VERSION} \
19+
POETRY_HOME=/opt/poetry \
20+
POETRY_VIRTUALENVS_CREATE=true \
21+
POETRY_VIRTUALENVS_IN_PROJECT=true \
22+
POETRY_VIRTUALENVS_OPTIONS_NO_PIP=true \
23+
POETRY_VIRTUALENVS_OPTIONS_NO_SETUPTOOLS=true \
24+
POETRY_NO_INTERACTION=1 \
25+
## rust
26+
CARGO_HOME=/opt/cargo \
27+
RUSTUP_HOME=/opt/rustup
28+
ENV PATH=$POETRY_HOME/bin:$CARGO_HOME/bin:$PATH
29+
RUN curl -sSL https://install.python-poetry.org | python3 - -y
30+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yq
31+
## PYTHON DEPENDENCIES
32+
WORKDIR /app
33+
COPY poetry.lock pyproject.toml .
34+
RUN poetry install --only main
35+
36+
# RUNTIME
37+
FROM docker.io/library/python:${PYTHON_VERSION}-slim as runtime
38+
ENV PATH=/app/.venv/bin:$PATH \
39+
PYTHONPATH=/app:$PYTHONPATH \
40+
PYTHONUNBUFFERED=1 \
41+
PYTHONDONTWRITEBYTECODE=1 \
42+
PORT=8000
43+
EXPOSE $PORT
44+
ENTRYPOINT ["python"]
45+
CMD ["-m", "rmp"]
46+
## APP
47+
COPY --from=js_builder /web/public /public
48+
COPY --from=py_builder /app /app
49+
COPY . /app

‎README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Rate My Pulls
2+
3+
Tinder for your pull requests.
4+
5+
# COPYING
6+
Rate My Pulls is licensed under AGPL-3.0-only.
7+
The full text of the license is available in the [COPYING](./COPYING) file.
8+
9+
Copyright 2022, Ananth <rate-my-pulls@kedi.dev>
10+
11+
## Acknowledgements
12+
13+
### [NES.css](https://github.com/nostalgic-css/NES.css)
14+
NES.css is an NES-style CSS Framework. NES.css is licensed under the MIT license.
15+
The full text of the license is available in the [LICENSE](./web/styles/NES.css-2.3.0/LICENSE) file.
16+
17+
Copyright 2018 B.C.Rikko.
18+
19+
### [Press Start 2P](https://fonts.google.com/specimen/Press+Start+2P)
20+
Press Start 2P is a bitmap font based on the font design from 1980s Namco Arcade games.
21+
Press Start 2P is licensed under the [Open Font License](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL).
22+
23+
Press Start 2P is designed by Cody "CodeMan38" Boisclair.

0 commit comments

Comments
 (0)