FEAT: Dockerized!
This commit is contained in:
parent
74534239a8
commit
b247827f75
20
dockerfile
Normal file
20
dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
# Use a Node.js base image
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install --omit=dev
|
||||
|
||||
COPY . .
|
||||
|
||||
# Build the application, will be placed in the build/ directory
|
||||
RUN npm run build
|
||||
|
||||
# Command to run after the build (e.g., a script, or just stay in the container)
|
||||
# You can change this to whatever you want to run after the build.
|
||||
CMD ["node", "build/index.js"]
|
||||
|
||||
# OR, if you want to enter the container after the build:
|
||||
# CMD ["/bin/sh"] # or CMD ["/bin/bash"] if bash is installed
|
||||
Loading…
x
Reference in New Issue
Block a user