docker: switch to node-alpine
This commit is contained in:
1 parent
5d91084fe4
commit
7e97726514
4 files changed
+4
-6
No files matched your search
@@ -1,8 +1,6 @@
|
|||||||
name: Node.js CI
|
name: Node.js CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: ['main']
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ['main']
|
branches: ['main']
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-slim
|
FROM node:20-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "1.22.0",
|
"version": "1.22.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { PUBLIC_SSR_ENABLED } from '$env/static/public'
|
import { env } from '$env/dynamic/public'
|
||||||
import { md, mdInline, photonify } from '$lib/components/markdown/markdown'
|
import { md, mdInline, photonify } from '$lib/components/markdown/markdown'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
From server to client, the rendered html won't change for some reason
|
From server to client, the rendered html won't change for some reason
|
||||||
I have no clue why this fixes it, but it does.
|
I have no clue why this fixes it, but it does.
|
||||||
*/
|
*/
|
||||||
if (PUBLIC_SSR_ENABLED.toLowerCase() == 'true') {
|
if (env?.PUBLIC_SSR_ENABLED?.toLowerCase() == 'true') {
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
rendered = `${rendered} `
|
rendered = `${rendered} `
|
||||||
replaceURLs(div, rendered)
|
replaceURLs(div, rendered)
|
||||||
|
|||||||
Reference in new issue
Block a user