Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ When adding a new entry, please use the following format:

## Log

- [2026-04-01] fix: set explicit home directory for app user to resolve Gunicorn and worker permission issues [#742](https://github.com/jlab-sensing/ENTS-backend/pull/742)
- [2026-03-30] fix: added test decorators to resolve lack of "TTN_API_KEY" on fork PR's. removed k6 from github actions. changed github action to utilize env-import.py as opposeed to directly accessing s3 bucket for env variables. [#736] (https://github.com/jlab-sensing/ENTS-backend/pull/736)
- [2026-03-23] fix: increase fallback SECRET_KEY length to resolve PyJWT InsecureKeyLengthWarning [#682](https://github.com/jlab-sensing/ENTS-backend/pull/682)
- [2026-03-12] fix: safely catch PyJWT DecodeErrors and remove log spam for invalid tokens [#683](https://github.com/jlab-sensing/ENTS-backend/pull/683)
Expand Down
6 changes: 4 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt
#RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -r requirements.txt

# create new user and group to run the app with name "app"
RUN adduser --system --group app
# Give the user an explicit home directory OUTSIDE the mounted volume
RUN adduser --system --group --home /home/app app
ENV HOME=/home/app
USER app
WORKDIR $HOME
WORKDIR /app

# copy files from source tree
COPY . .
Expand Down
Loading