-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from ropable/master
Cosmetic update to link form, update package versions, update GitHub workflows & base image version
- Loading branch information
Showing
15 changed files
with
602 additions
and
475 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,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
# Workflow files stored in the | ||
# default location of `.github/workflows` | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# syntax=docker/dockerfile:1 | ||
# Prepare the base environment. | ||
FROM python:3.10.12-slim-bookworm as builder_base_prs | ||
FROM python:3.10.13-slim as builder_base_prs | ||
MAINTAINER [email protected] | ||
LABEL org.opencontainers.image.source https://github.com/dbca-wa/prs | ||
|
||
|
@@ -12,19 +13,24 @@ RUN apt-get update -y \ | |
# Install Python libs using Poetry. | ||
FROM builder_base_prs as python_libs_prs | ||
WORKDIR /app | ||
ENV POETRY_VERSION=1.5.1 | ||
RUN pip install "poetry==$POETRY_VERSION" | ||
COPY poetry.lock pyproject.toml /app/ | ||
ARG POETRY_VERSION=1.6.1 | ||
RUN pip install poetry=="${POETRY_VERSION}" | ||
COPY poetry.lock pyproject.toml ./ | ||
RUN poetry config virtualenvs.create false \ | ||
&& poetry install --no-interaction --no-ansi --only main | ||
|
||
# Create a non-root user. | ||
ARG UID=10001 | ||
ARG GID=10001 | ||
RUN groupadd -g "${GID}" appuser \ | ||
&& useradd --no-create-home --no-log-init --uid "${UID}" --gid "${GID}" appuser | ||
|
||
# Install the project. | ||
FROM python_libs_prs | ||
COPY gunicorn.py manage.py ./ | ||
COPY prs2 ./prs2 | ||
RUN python manage.py collectstatic --noinput | ||
|
||
# Run the application as the www-data user. | ||
USER www-data | ||
USER ${UID} | ||
EXPOSE 8080 | ||
CMD ["gunicorn", "prs2.wsgi", "--config", "gunicorn.py"] |
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 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM typesense/typesense:0.24.1 | ||
MAINTAINER [email protected] | ||
LABEL org.opencontainers.image.source https://github.com/dbca-wa/typesense | ||
|
||
# Create a non-root user. | ||
ARG UID=10001 | ||
ARG GID=10001 | ||
RUN groupadd -g "${GID}" typesense \ | ||
&& useradd --no-create-home --no-log-init --uid "${UID}" --gid "${GID}" typesense | ||
|
||
RUN chown -R typesense:typesense /opt/typesense-server | ||
USER ${UID} |
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
Oops, something went wrong.