Skip to content

Commit

Permalink
add mime-support package to try and fix svg content types
Browse files Browse the repository at this point in the history
  • Loading branch information
copelco committed Nov 1, 2024
1 parent f85ca8c commit 8d0e606
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM node:18.17.0-bullseye-slim as static_files
FROM node:18.17.0-bullseye-slim AS static_files

WORKDIR /code
ENV PATH /code/node_modules/.bin:$PATH
ENV PATH=/code/node_modules/.bin:$PATH
COPY frontend/package.json frontend/package-lock.json /code/
RUN npm install -g npm@latest
RUN npm install --silent
COPY frontend/ /code/
RUN npm run build

FROM python:3.10-slim-bullseye as base
FROM python:3.10-slim-bullseye AS base

# Create a group and user to run our app
ARG APP_USER=appuser
Expand All @@ -21,6 +21,7 @@ RUN groupadd -r ${APP_USER} && useradd --no-log-init -r -g ${APP_USER} ${APP_USE
RUN set -ex \
&& RUN_DEPS=" \
libpcre3 \
mime-support \
postgresql-client \
vim \
" \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ update_requirements:
pip-compile --output-file=requirements/base/base.txt requirements/base/base.in
pip-compile --output-file=requirements/test/test.txt requirements/test/test.in
pip-compile --output-file=requirements/dev/dev.txt requirements/dev/dev.in
pip-compile --output-file=requirements/deploy/deploy.txt requirements/deploy/deploy.in
pip-compile --upgrade --output-file=requirements/deploy/deploy.txt requirements/deploy/deploy.in

install_requirements:
@echo 'Installing pip-tools...'
Expand Down
6 changes: 3 additions & 3 deletions requirements/deploy/deploy.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deploy.in
-c ../base/base.txt
python3-memcached
newrelic==9.10.0
sentry-sdk==2.5.1
uwsgi==2.0.26
newrelic
sentry-sdk
uwsgi
8 changes: 4 additions & 4 deletions requirements/deploy/deploy.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements/deploy/deploy.txt requirements/deploy/deploy.in
Expand All @@ -8,15 +8,15 @@ certifi==2020.6.20
# via
# -c requirements/deploy/../base/base.txt
# sentry-sdk
newrelic==9.10.0
newrelic==10.2.0
# via -r requirements/deploy/deploy.in
python3-memcached==1.51
# via -r requirements/deploy/deploy.in
sentry-sdk==2.5.1
sentry-sdk==2.17.0
# via -r requirements/deploy/deploy.in
urllib3==2.2.1
# via
# -c requirements/deploy/../base/base.txt
# sentry-sdk
uwsgi==2.0.26
uwsgi==2.0.28
# via -r requirements/deploy/deploy.in

0 comments on commit 8d0e606

Please sign in to comment.