Skip to content

Commit

Permalink
chore: Copy node_modules and more when building docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsTheGlidingSquirrel committed Jun 10, 2024
1 parent 1cad2fc commit a4af905
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
18 changes: 2 additions & 16 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# .env - Should not be added because it contains private keys used for encryption
# .env - Should not be added because it contains private keys used for encryption. Instead, provide env variables to the docker container.
.env

# Logs
Expand All @@ -10,11 +10,6 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand All @@ -24,13 +19,4 @@ dist-ssr
*.ntvs*
*.njsproj
*.sln
*.sw?

# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
*.sw?
5 changes: 0 additions & 5 deletions .yarnrc

This file was deleted.

1 change: 1 addition & 0 deletions src/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import path from "node:path";
import * as t from "io-ts";
import * as jwt from "jsonwebtoken";

// Requires Node.js 20.11 or higher
const __dirname = import.meta.dirname;

const ltijsKey = process.env.LTIJS_KEY;
Expand Down

0 comments on commit a4af905

Please sign in to comment.