Skip to content

Commit

Permalink
Use webpack to manage stylesheets.
Browse files Browse the repository at this point in the history
In the near future this will allow adding some javascript to add new
features.
  • Loading branch information
ReneHollander committed Sep 10, 2023
1 parent 958a233 commit b4c5b34
Show file tree
Hide file tree
Showing 20 changed files with 3,213 additions and 235 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ __pycache__
/.idea/
/data/
/secrets/
/node_modules
/.vscode/
/rep0st/web/frontend/static
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cymysql = "*"
pywavelets = "*"
joblib = "*"
elasticsearch = "*"
elasticsearch-dsl = "8.9.0a1"
elasticsearch-dsl = "*"
prometheus-client = "*"
cheroot = "*"
jinja2 = "*"
Expand Down
20 changes: 15 additions & 5 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions deployment/rep0st.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,32 @@ ENV LC_ALL C.UTF-8
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONFAULTHANDLER 1

RUN apt-get update && apt-get dist-upgrade -y
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y ffmpeg

FROM base AS python-deps

RUN apt-get install -y gcc
RUN apt-get install -y gcc nodejs npm

RUN pip install pipenv
COPY Pipfile* /
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy

FROM base AS runtime
COPY package* /
RUN npm install

RUN apt-get install -y ffmpeg
COPY rep0st /rep0st/
COPY webpack.config.js /
RUN npm run build

FROM base AS runtime

COPY --from=python-deps /.venv /.venv
ENV PATH="/.venv/bin:$PATH"

COPY --chmod=755 deployment/healthcheck/rep0st /usr/local/bin/docker-healthcheck
HEALTHCHECK CMD ["docker-healthcheck"]

COPY rep0st /rep0st/
COPY --from=python-deps /rep0st/ /rep0st/
WORKDIR /
ENTRYPOINT ["python", "-m"]

Expand Down
Loading

0 comments on commit b4c5b34

Please sign in to comment.