🐳 Added Dockerfile

This commit is contained in:
2025-02-20 21:48:31 -05:00
parent 1900a3ddb8
commit 175a67c5b2

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:12-alpine
LABEL maintainer="Rishi Ghan <rishi.ghan@gmail.com>"
# Working directory
WORKDIR /metadata-service
# Install dependencies
COPY package.json package-lock.json ./
RUN npm ci --silent
# Copy source
COPY . .
# Build and cleanup
ENV NODE_ENV=production
RUN npm run build \
&& npm prune
EXPOSE 3080
# Start server
CMD ["npm", "start"]