Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT=16-bullseye
# [Choice] Node.js version.
ARG VARIANT=22-bookworm
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"name": "FP Analytics Website",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Update 'VARIANT' to pick a Node version.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "16-bullseye"
"VARIANT": "22-bookworm"
}
},

Expand Down
3 changes: 1 addition & 2 deletions .env.local.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ANALYTICS_HOST=
ANALYTICS_TOKEN=
DIRECTUS_HOST=
DIRECTUS_API_KEY=
GAME_DB_API_HOST=https://db-api.unstable.life
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# misc
.DS_Store
*.pem
tsconfig.tsbuildinfo

# debug
npm-debug.log*
Expand All @@ -32,4 +33,4 @@ yarn-error.log*
.vercel

# Vscode
.vscode
.vscode
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:22

# Create app directory
WORKDIR /usr/src/app
Expand All @@ -8,9 +8,7 @@ WORKDIR /usr/src/app
# where available (npm@5+)
COPY package*.json ./

RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
RUN npm ci

# Bundle app source
COPY . .
Expand All @@ -21,4 +19,4 @@ RUN npm run build
# Expose port
EXPOSE 3000

CMD [ "npm", "run", "start" ]
CMD [ "npm", "run", "start" ]
Loading