Files
threetwo-acquisition-service/Dockerfile
2025-02-21 11:08:49 -05:00

28 lines
524 B
Docker

FROM node:22.1.0
LABEL maintainer="Rishi Ghan <rishi.ghan@gmail.com>"
# Working directory
WORKDIR /acquisition-service
# Install dependencies
COPY package.json package-lock.json ./
COPY moleculer.config.ts ./
COPY tsconfig.json ./
RUN apt-get update && apt-get install -y \
bash
# Install application dependencies
RUN npm install
RUN npm install -g typescript ts-node
# Copy source
COPY . .
# Build and cleanup
ENV NODE_ENV=production
RUN npm run build \
&& npm prune
EXPOSE 3080
# Start server
CMD ["npm", "start"]