Kaballas commited on
Commit
4ba444d
·
1 Parent(s): e87d794
Files changed (3) hide show
  1. Dockerfile +3 -2
  2. Dockerfile.dev +11 -0
  3. Dockerfile.test +12 -0
Dockerfile CHANGED
@@ -6,6 +6,7 @@ COPY package*.json ./
6
  RUN apk --no-cache add --virtual builds-deps build-base python3 git libreoffice ttf-liberation
7
  RUN npm install
8
  COPY . .
9
- ENV NODE_ENV dev
 
10
  ENV NODE_ICU_DATA=node_modules/full-icu
11
- ENTRYPOINT [ "npm", "run", "dev"]
 
6
  RUN apk --no-cache add --virtual builds-deps build-base python3 git libreoffice ttf-liberation
7
  RUN npm install
8
  COPY . .
9
+ EXPOSE 4242
10
+ ENV NODE_ENV prod
11
  ENV NODE_ICU_DATA=node_modules/full-icu
12
+ ENTRYPOINT ["npm", "start"]
Dockerfile.dev ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts-alpine
2
+
3
+ RUN mkdir -p /app
4
+ WORKDIR /app
5
+ COPY package*.json ./
6
+ RUN apk --no-cache add --virtual builds-deps build-base python3 git libreoffice ttf-liberation
7
+ RUN npm install
8
+ COPY . .
9
+ ENV NODE_ENV dev
10
+ ENV NODE_ICU_DATA=node_modules/full-icu
11
+ ENTRYPOINT [ "npm", "run", "dev"]
Dockerfile.test ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts-alpine
2
+
3
+ RUN mkdir -p /app
4
+ WORKDIR /app
5
+ COPY package*.json ./
6
+ RUN apk --no-cache add --virtual builds-deps build-base python3 git libreoffice ttf-liberation
7
+ RUN npm install
8
+ COPY . .
9
+ ENV NODE_ENV test
10
+ ENV NODE_ICU_DATA=node_modules/full-icu
11
+ RUN npm install
12
+ ENTRYPOINT ["npm", "run", "test"]