Skip to content

Commit 4d378d5

Browse files
committedMar 8, 2025··
fix: docker build
1 parent 751e0c1 commit 4d378d5

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed
 

‎Dockerfile

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
1-
FROM node:22-alpine3.20 as build
1+
FROM denoland/deno:alpine-2.1.6 AS build
22
RUN mkdir -p /app
33
WORKDIR /app
4-
COPY ./package.json ./package.json
5-
COPY ./package-lock.json ./package-lock.json
6-
COPY ./app/package.json ./app/package.json
7-
RUN npm install
84
COPY . .
5+
RUN deno install --allow-scripts
96
ENV APP_NAME=quack
107
ARG APP_VERSION=3.x.x
118
ENV APP_VERSION=$APP_VERSION
12-
RUN APP_NAME=quack APP_VERSION=$APP_VERSION npm run build
9+
RUN APP_NAME=quack APP_VERSION=$APP_VERSION deno task build
1310

1411
FROM denoland/deno:alpine-2.1.6
1512
RUN apk -U upgrade
16-
run apk add vips-cpp build-base vips vips-dev
13+
RUN apk add vips-cpp build-base vips vips-dev
1714
ENV ENVIRONMENT=production
18-
run mkdir -p /app
15+
RUN mkdir -p /app
1916
WORKDIR /app
20-
COPY ./deno ./deno
21-
COPY ./migrations ./migrations
22-
COPY ./deno.* ./
23-
COPY ./plugins ./plugins
17+
COPY . .
2418
COPY --from=build /app/app/dist /app/public
25-
COPY --from=build /app/node_modules /app/node_modules
2619
#COPY ./migrate-mongo-config.js ./migrate-mongo-config.js
2720
#RUN deno cache --allow-scripts npm:migrate-mongo
2821
RUN deno install --allow-scripts
@@ -35,4 +28,4 @@ ENV APP_VERSION=$APP_VERSION
3528
RUN echo "APP_VERSION=$APP_VERSION"
3629
RUN chmod +x ./entrypoint.sh
3730
EXPOSE 8080
38-
CMD sh ./entrypoint.sh
31+
CMD ["sh", "./entrypoint.sh"]

‎app/deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"tauri": "tauri"
1414
},
1515
"imports": {
16-
"@planigale/sse": "npm:@jsr/planigale__sse@0.2.4",
16+
"@jsr/planigale__sse": "npm:@jsr/planigale__sse@0.2.4",
1717
"@tauri-apps/api": "npm:@tauri-apps/api@^2",
1818
"@tauri-apps/plugin-http": "npm:@tauri-apps/plugin-http@^2",
1919
"@tauri-apps/plugin-log": "npm:@tauri-apps/plugin-log@^2.0.1",

‎deno/api/mod.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file no-window
2-
import { SSESource } from "@planigale/sse";
2+
import { SSESource } from "@jsr/planigale__sse";
33
import {
44
ApiErrorResponse,
55
Channel,

0 commit comments

Comments
 (0)
Please sign in to comment.