Commit Graph

59 Commits

Author SHA1 Message Date
Zurdi
4872141de1 fixed scrappers assets on build 2024-07-08 16:30:23 +02:00
Michael Manganiello
7611e57811 misc: Fix FromAsCasing warning during Docker build
Fix recently introduced `FromAsCasing` [1] Docker build check.

[1] https://docs.docker.com/reference/build-checks/from-as-casing/
2024-07-06 20:37:41 -03:00
Zurdi
7c39d211fb fixed dockerfile for arm64 2024-07-06 23:59:52 +02:00
Georges-Antoine Assi
0546cee67d Merge branch 'master' into fix/improve-docker-layer-caching-on-frontend-changes 2024-06-23 10:24:02 -04:00
Michael Manganiello
32ef612b0a fix: Improve Docker layer caching on frontend changes
Avoid any changes in the `frontend/` folder to trigger `npm install`.
Instead, split the copies to have separate steps for install and build.
2024-06-22 20:29:52 -03:00
Michael Manganiello
0daa708a05 misc: Simplify backend environment configuration in Docker image
This change moves the virtualenv creation in the `Dockerfile` to a
separate stage, to simplify isolating the process and reduce the need
for uninstalling build dependencies.

The approach is similar to the one explained in [1]. It relies on
building a virtualenv folder, and copying it in the final stage.
Changing the `PATH` environment variable makes the virtualenv usable by
default, without affecting the default Python installation.

Also, added Dockerfile arguments for Alpine, nginx, and Python versions,
as some of them are reused, and also simplifies testing new versions.

An extra side effect is that the image size for the final stage is
reduced from 315MB to 262MB.

[1] https://scribe.rip/@albertazzir/blazing-fast-python-docker-builds-with-poetry-a78a66f5aed0
2024-06-22 18:19:16 -03:00
Georges-Antoine Assi
b16c58e4bb update redis build and update nginx 2024-06-21 13:03:50 -04:00
Georges-Antoine Assi
896cb57420 Install redis instead of building it 2024-06-21 12:48:42 -04:00
Georges-Antoine Assi
381f13e4b9 more tweaking 2024-05-31 18:30:42 -04:00
Georges-Antoine Assi
0efbd9f113 label final stage 2024-05-31 18:11:17 -04:00
Georges-Antoine Assi
ed68c01fe2 ask chatgpt 2024-05-31 18:05:13 -04:00
Georges-Antoine Assi
bae407a40d running as non-root user 2024-03-27 01:22:51 +00:00
Georges-Antoine Assi
369ab47736 get rid of logs volume 2024-03-25 17:30:38 -04:00
Georges-Antoine Assi
41d0d2eb46 more dir creating up in dockerfile + add redis password 2024-03-25 15:30:27 +00:00
Georges-Antoine Assi
49bafe5ab0 just set it to 777 2024-03-25 04:18:02 +00:00
Georges-Antoine Assi
c8dc872a0d remove from init script and use user docker attr 2024-03-24 23:23:10 -04:00
Georges-Antoine Assi
be553d5524 add shadow to set ownership 2024-03-18 02:53:27 +00:00
Georges-Antoine Assi
faaa81995c fix building image 2024-03-18 02:06:07 +00:00
Georges-Antoine Assi
d073657365 Allow setting dynamic PUID/PGID 2024-03-17 19:56:25 -04:00
Georges-Antoine Assi
e024fc987f bind redis data volume 2024-03-12 02:07:31 +00:00
Georges-Antoine Assi
558a1d0a8d add comments to redis in dockerfile 2024-03-06 10:01:08 -05:00
Georges-Antoine Assi
a36d49979e [WIP] build redis into container
expose port right
2024-03-01 10:36:02 -05:00
Georges-Antoine Assi
7ff61b6fe5 tweak docekrfile 2024-02-07 04:50:06 +00:00
Georges-Antoine Assi
ec5fe09d90 fix some build issues 2024-02-06 23:33:28 -05:00
Georges-Antoine Assi
eb18388a81 Mega refactor of asset 2024-02-01 17:59:06 -05:00
Georges-Antoine Assi
f3d44aae41 api endpoint for raw asset access 2024-01-18 09:48:57 -05:00
Georges-Antoine Assi
bd245cec4a Change urls to specify webrcade 2023-12-28 13:02:00 -05:00
Georges-Antoine Assi
4b97e21f46 Merge branch 'master' into webrcade-feed 2023-12-27 19:34:58 -05:00
Zurdi
25aab268e9 added pipx to dockerfile 2023-12-13 17:17:57 +01:00
Zurdi
4155632988 fixed build workflow installing poetry with pipx 2023-12-13 16:24:34 +01:00
Zurdi
0c51585fc6 adapted workflows to poetry_npm 2023-12-13 15:40:51 +01:00
Lukas Wingerberg
adf8127295 refactor init script and add error handling via watchdog loop 2023-10-31 22:39:08 +01:00
zurdi
7001511e26 fix - romm user added to nginx config and dockerfile 2023-10-25 01:33:45 +02:00
Lukas Wingerberg
8b9d174ef7 add libffi to fix arm64 builds and reorder packages alphabetically 2023-10-24 23:11:10 +02:00
Lukas Wingerberg
6fe4562d3d Move docker labels into git workflow 2023-10-24 22:55:53 +02:00
Lukas Wingerberg
45f41e0069 remove duplicate package installs 2023-10-23 20:07:07 +02:00
Lukas Wingerberg
10f34a6495 add venv to docker and refactor to get rid of python build dependencies that are not needed at runtime 2023-10-22 15:56:05 +02:00
Lukas Wingerberg
584b8c5619 further reduce docker image size by cleaning up poetry cache 2023-10-22 14:06:10 +02:00
Lukas Wingerberg
87ae129cf3 further reduce docker image size by removing build deps and squashing layers down to 1 2023-10-22 14:02:34 +02:00
Lukas Wingerberg
db282479b0 switch uvicorn and nginx to communicate via unix socket instead of tcp 2023-10-22 13:05:03 +02:00
Lukas Wingerberg
8015558398 refactor to alpine base and fix some more paths to work on readonly rootfs 2023-10-22 12:45:34 +02:00
Georges-Antoine Assi
40c3446294 Update dockerfile to copy feed 2023-09-17 11:55:29 -04:00
zurdi
7d5e600c8a add default_user avatar to dockerfile 2023-08-24 17:56:03 +02:00
zurdi
282d147719 dockerfile fixed 2023-08-14 00:21:34 +02:00
Georges-Antoine Assi
22dec93071 Revert romm_version file 2023-08-10 21:21:06 -04:00
zurdi
6b0438f2c1 front version added to docker image build 2023-08-10 15:04:11 +02:00
zurdi
731120b07d added netcat to base image 2023-08-09 15:20:04 +02:00
Georges-Antoine Assi
83f3bf0fb4 Make the dockerfile work for real 2023-05-09 11:29:27 -04:00
Georges-Antoine Assi
c402f5f194 Updates for dockerfile 2023-05-09 10:58:51 -04:00
duhow
9cdca7c7aa Remove software-properties-common dependency 2023-04-10 16:40:55 +02:00