feat: Containerize services with Docker Compose (PostgreSQL, Strapi CMS, Express Backend, Nginx Frontend) on custom ports >9000
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy root package files and install dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy server code and assets
|
||||
COPY server/ ./server/
|
||||
COPY scripts/ ./scripts/
|
||||
COPY public/ ./public/
|
||||
|
||||
# Create uploads and data directories
|
||||
RUN mkdir -p server/uploads server/data
|
||||
|
||||
ENV PORT=3005
|
||||
ENV NODE_ENV=production
|
||||
|
||||
EXPOSE 3005
|
||||
|
||||
CMD ["node", "server/index.js"]
|
||||
Reference in New Issue
Block a user