auto config import
This commit is contained in:
1 parent
9b078254ac
commit
459873f0e5
3 files changed
+26
-2
No files matched your search
+8
-2
@@ -1,5 +1,8 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
# Install netcat for port checking
|
||||
RUN apk add --no-cache netcat-openbsd
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /opt/app
|
||||
|
||||
@@ -15,8 +18,11 @@ COPY . .
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Make startup script executable
|
||||
RUN chmod +x start.sh
|
||||
|
||||
# Expose port
|
||||
EXPOSE 1337
|
||||
|
||||
# Start the application
|
||||
CMD ["npm", "start"]
|
||||
# Start the application with the startup script
|
||||
CMD ["./start.sh"]
|
||||
Reference in new issue
Block a user