-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
lts/hydrogen | ||
lts/iron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
# syntax = docker/dockerfile:1 | ||
FROM node:18-slim as base | ||
|
||
ARG NODE_VERSION=20 | ||
|
||
FROM node:${NODE_VERSION}-slim as base | ||
LABEL fly_launch_runtime="Node.js" | ||
WORKDIR /app | ||
ENV NODE_ENV="production" | ||
|
||
FROM base as build | ||
RUN apt-get update -qq && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential=12.9 pkg-config=1.8.1-1 python-is-python3=3.11.1-3 | ||
COPY --link package-lock.json package.json ./ | ||
RUN npm ci --include=dev | ||
COPY --link . . | ||
RUN npm run build && npm prune --omit=dev | ||
build-essential=12.9 pkg-config=1.8.1-1 python-is-python3=3.11.2-1+deb12u1 | ||
COPY package-lock.json package.json ./ | ||
COPY . . | ||
RUN npm ci --include=dev && npm run build && npm prune --omit=dev | ||
|
||
FROM base | ||
COPY --from=build /app /app | ||
RUN mkdir -p /app/db | ||
VOLUME /app/db | ||
RUN mkdir -p /data | ||
VOLUME /data | ||
EXPOSE 3000 | ||
ENV DATABASE_URL="file:///data/sqlite.db" | ||
ENV host="0.0.0.0" | ||
CMD [ "npm", "run", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ | |
"npm": "^10" | ||
}, | ||
"engines": { | ||
"node": "^18" | ||
"node": "^20" | ||
}, | ||
"name": "narf", | ||
"prettier": { | ||
|