i wanna kms

This commit is contained in:
Omer Sabic 2024-05-29 20:58:13 +02:00
parent 92129bf0f2
commit 5ac4aa6b80
3 changed files with 18 additions and 6 deletions

View File

@ -1,5 +1,17 @@
FROM node:20-alpine # Use the official Node.js image
WORKDIR ./build FROM node:18-alpine
# Create and set the working directory
WORKDIR /app
# Copy the build folder to the working directory
COPY build ./build
# Change directory to the build folder
WORKDIR /app/build
# Make port 3000 available to the world outside this container, if necessary
EXPOSE 3000 EXPOSE 3000
ENV NODE_ENV=production
RUN ["node", "./index.mjs"] # Run the application
CMD ["node", "--experimental-modules", "index.js"]

View File

@ -26,7 +26,7 @@ function totalist(dir, callback, pre='') {
/** /**
* @typedef ParsedURL * @typedef ParsedURL
* @type {import('./index.mjs').ParsedURL} * @type {import('./index.js').ParsedURL}
*/ */
/** /**

View File

@ -107,7 +107,7 @@ class Trouter {
/** /**
* @typedef ParsedURL * @typedef ParsedURL
* @type {import('./index.mjs').ParsedURL} * @type {import('./index.js').ParsedURL}
*/ */
/** /**