fix: 🐛 Properly install and import the S3 client

This commit is contained in:
Jesse Wierzbinski 2024-06-28 20:49:17 -10:00
parent 106e34848a
commit e95cabb304
No known key found for this signature in database
6 changed files with 12 additions and 10 deletions

View file

@ -1,6 +1,6 @@
# Use 1.1.4 for building to prevent a Unicode bug with 1.1.5+
# Temporary until they fix it
FROM oven/bun:1.1.4-alpine as base
FROM oven/bun:1.1.4-alpine AS base
RUN apk add --no-cache libstdc++
@ -13,7 +13,7 @@ COPY . /temp
WORKDIR /temp
RUN bun install --production
FROM base as build
FROM base AS build
# Copy the project
RUN mkdir -p /temp
@ -35,12 +35,12 @@ RUN mkdir -p /app
COPY --from=build /temp/dist /app/dist
COPY entrypoint.sh /app
LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.dev)"
LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand"
LABEL org.opencontainers.image.vendor "Lysand Org"
LABEL org.opencontainers.image.licenses "AGPL-3.0-or-later"
LABEL org.opencontainers.image.title "Lysand Server"
LABEL org.opencontainers.image.description "Lysand Server docker image"
LABEL org.opencontainers.image.authors="Gaspard Wierzbinski (https://cpluspatch.dev)"
LABEL org.opencontainers.image.source="https://github.com/lysand-org/lysand"
LABEL org.opencontainers.image.vendor="Lysand Org"
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
LABEL org.opencontainers.image.title="Lysand Server"
LABEL org.opencontainers.image.description="Lysand Server docker image"
# CD to app
WORKDIR /app

View file

@ -20,6 +20,7 @@ await Bun.build({
external: ["unzipit"],
}).then((output) => {
if (!output.success) {
console.error(output.logs);
process.exit(1);
}
});

BIN
bun.lockb

Binary file not shown.

View file

@ -4,7 +4,7 @@
*/
import { beforeEach, describe, expect, it, mock } from "bun:test";
import type { S3Client } from "@jsr/bradenmacdonald__s3-lite-client";
import type { S3Client } from "@bradenmacdonald/s3-lite-client";
import type { Config } from "config-manager";
import type { MediaHasher } from "../media-hasher";
import { S3MediaDriver } from "./s3";

View file

@ -3,7 +3,7 @@
* @module MediaManager/Drivers
*/
import { S3Client } from "@jsr/bradenmacdonald__s3-lite-client";
import { S3Client } from "@bradenmacdonald/s3-lite-client";
import type { Config } from "config-manager";
import { MediaHasher } from "../media-hasher";
import type { UploadedFileMetadata } from "../media-manager";

View file

@ -96,6 +96,7 @@
"typescript": "^5.3.2"
},
"dependencies": {
"@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client",
"@hackmd/markdown-it-task-lists": "^2.1.4",
"@hono/zod-validator": "^0.2.2",
"@inquirer/confirm": "^3.1.11",