i wanna kms
This commit is contained in:
parent
92129bf0f2
commit
5ac4aa6b80
20
Dockerfile
20
Dockerfile
@ -1,5 +1,17 @@
|
||||
FROM node:20-alpine
|
||||
WORKDIR ./build
|
||||
# Use the official Node.js image
|
||||
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
|
||||
ENV NODE_ENV=production
|
||||
RUN ["node", "./index.mjs"]
|
||||
|
||||
# Run the application
|
||||
CMD ["node", "--experimental-modules", "index.js"]
|
||||
|
@ -26,7 +26,7 @@ function totalist(dir, callback, pre='') {
|
||||
|
||||
/**
|
||||
* @typedef ParsedURL
|
||||
* @type {import('./index.mjs').ParsedURL}
|
||||
* @type {import('./index.js').ParsedURL}
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -107,7 +107,7 @@ class Trouter {
|
||||
|
||||
/**
|
||||
* @typedef ParsedURL
|
||||
* @type {import('./index.mjs').ParsedURL}
|
||||
* @type {import('./index.js').ParsedURL}
|
||||
*/
|
||||
|
||||
/**
|
Loading…
Reference in New Issue
Block a user