Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
- Dockerfile based on node:18-alpine - Gitea Actions workflow triggers on push to release/* branches - Builds and pushes to Gitea container registry with version tags
18 lines
286 B
Docker
18 lines
286 B
Docker
FROM node:18-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files and install dependencies
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci --omit=dev
|
|
|
|
# Copy application source
|
|
COPY server/ ./server/
|
|
COPY public/ ./public/
|
|
|
|
EXPOSE 3001
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
CMD ["node", "server/index.js"]
|