14 Commits

Author SHA1 Message Date
aswind7 f845dc10bf fix dockerfile name
Signed-off-by: aswind7 <854413241@qq.com>
2025-10-31 15:32:09 +08:00
renovate[bot] 29ba5fd20c chore(deps): update node.js to v20
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 06:13:40 +00:00
Fredrik Adelöw 019d9ad3b3 minor dockerfile syntax update
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-08-21 09:27:59 +02:00
Fredrik Adelöw 6bbbf77f08 no hashes in contrib
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-02-14 12:09:34 +01:00
renovate[bot] 7592828f9d chore(deps): update nginx:mainline docker digest to 84c52df
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 00:29:01 +00:00
renovate[bot] 4b7c665402 chore(deps): pin dependencies
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-04 11:38:43 +00:00
Vity f2692a4fae Update default.conf.template - adding mime types support
Without mime types,enabled Nginx services files as text/plain. This is not supported eg. in the Firefox does not load CSS files with wrong Content-Type header. This caused stopped to work GraphQL plugin.

Signed-off-by: Vity <vity@vity.cz>
2023-05-25 11:35:26 +02:00
Patrik Oldsberg 7605c11cda bump Node.js to 16 & 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-07 11:39:08 +01:00
Ben Chidgey 7e2c0bc96f FIX: Stop sed escaping numbers 2 and 7 in Docker
An interesting edge case has come up whilst using BackStage.

When using the example frontend-with-nginx work to run a separate
frontend, whilst then providing an override for the
googleAnalyticsTrackingId in yaml config via
APP_CONFIG_app_googleAnalyticsTrackingId. I received an "Octal escape
sequences are not allowed in strict mode" error in the browser dev
console.

After looking into it it appears that the sed used escapes the numbers 2
and 7 if they are present in an APP_CONFIG_* ENV override value.
I happened to have both a 2 and a 7 in my GA ids, hence the edge case
part!

Of note this did not happen on my mac but it is present inside of the
nginx:mainline Docker container used in the example.

This fix simply removes the hex from the sed substitution regex and
replaces it with a single quote '

Signed-off-by: Ben Chidgey <ben@feedmypixel.com>
2021-09-23 17:34:54 +01:00
Fredrik Adelöw ccfd99c9b1 update dockerfile instructions to build only app workspace
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-08-12 09:47:16 +02:00
Brian Fox 8bd92cff3f Update nginx deployment to use 1.19 features
- There is no need to override the `CMD` on the base image to get the custom scripts to run. This can be done simply by adding the custom configuration script to the `/docker-entrypoint.d` folder. See https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/docker-entrypoint.sh.
- With the above change made, we can now also reap the benefit of support for `envsubst` having been added in 1.19 -  as long as the config is placed in the folder `/etc/nginx/templates/`. See https://github.com/docker-library/docs/tree/master/nginx#using-environment-variables-in-nginx-configuration-new-in-119 and https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/20-envsubst-on-templates.sh for more info.

Signed-off-by: Brian Fox <brianhfox@gmail.com>
2021-04-22 17:36:05 +02:00
Fredrik Adelöw e669a8013f update the standalone frontend contribs
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 20:24:06 +02:00
Himanshu Mishra cca03162bc chore: Remove yarn docker-build:app command and related docs 2021-01-17 21:53:37 +01:00
Himanshu Mishra 9560a1a4ab chore: Move Dockerfile at root to contrib/
In deployment docs https://backstage.io/docs/getting-started/deployment-other, we suggest doing a `yarn docker-build` and I thought the root Dockerfile was being used to build the image. Hence I modified it for some needs, but no changes were reflected. Later I found that `yarn docker-build` uses the `Dockerfile` present inside `packages/backend` https://github.com/backstage/backstage/blob/master/packages/backend/Dockerfile. So, I think the Dockerfile at the root is a bit misleading, and should be moved to contrib.

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-01-13 15:24:22 +01:00