forked from CRICDatabase/searchable-image-database-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (21 loc) · 720 Bytes
/
Dockerfile
File metadata and controls
23 lines (21 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:13.13-buster as base
# Create project directory
WORKDIR /opt/cric/frontend
# Install app dependencies
COPY package*.json ./
RUN npm install --production && npm cache clean --force
# Set PATH
ENV PATH /opt/cric/frontend/node_modules/.bin:$PATH
# Expose port. Otherwise, we will have "This site can’t be reached"
# https://stackoverflow.com/a/46779529
EXPOSE 4200
LABEL version="0.2.0-base" \
description="Frontend in Angular for CRIC Searchable Image Database" \
maintainer="raniere@rgaiacs.com"
FROM base as development
RUN npm install && npm cache clean --force
LABEL version="0.2.0-development"
FROM development as production
# Copy ./src
COPY . ./
LABEL version="0.2.0-production"