blob: 41d3fb35172b35461d3f1cac58b45203da731ccf [file] [log] [blame]
# NOTE: If you want this file to be re-compiled with docker-compose, you need to run `docker-compose up --build`
# Install node v14
FROM node:14
# Set the workdir /var/www/lake
WORKDIR /var/www/lake
# Copy the package.json to workdir
COPY package.json ./
# Copy application source
COPY . .
# Run npm install - install the npm dependencies
RUN npm install
# Expose application port
EXPOSE 3000
EXPOSE 3001
ENV NODE_ENV=docker
ENV ENRICHMENT_HOST=0.0.0.0
ENV COLLECTION_HOST=0.0.0.0
ENV ENRICHMENT_PORT=3000
ENV COLLECTION_PORT=3001
# Start the application
CMD ["npm", "run", "lake-prod"]