Files
threetwo-metadata-service/Dockerfile
2021-09-01 12:16:59 -07:00

19 lines
301 B
Docker

FROM node:12-alpine
# Working directory
WORKDIR /comicvine-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"]