Skip to content

Commit

Permalink
Revert "Fix build issues in CI (#248)"
Browse files Browse the repository at this point in the history
This reverts commit 0bdc6d3.
  • Loading branch information
krapie authored Jul 24, 2024
1 parent 0bdc6d3 commit 0f59888
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
13 changes: 0 additions & 13 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,5 @@ COPY --from=builder /app ./
RUN apk upgrade --update-cache --available && \
apk add openssl && \
rm -rf /var/cache/apk/*

# Dependency for Puppeteer
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser

EXPOSE 3000
CMD ["npm", "run", "start:prod"]
7 changes: 1 addition & 6 deletions backend/src/files/files.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ import { ExportFileRequestBody, ExportFileResponse } from "./types/export-file.t
@Injectable()
export class FilesService {
private s3Client: S3Client;
private readonly markdown: MarkdownIt;
private readonly markdown = new MarkdownIt();

constructor(
private configService: ConfigService,
private prismaService: PrismaService
) {
this.s3Client = new S3Client();
this.markdown = new MarkdownIt({
html: true,
breaks: true,
linkify: true,
});
}

async createUploadPresignedUrl(
Expand Down

0 comments on commit 0f59888

Please sign in to comment.