-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (43 loc) · 1.53 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM quickcorp/qcobjects:latest
###
# QCObjects Azure App Service 1.0
# ________________
#
# Author: Jean Machuca <[email protected]>
#
# Cross Browser Javascript Framework for MVC Patterns
# QuickCorp/QCObjects is licensed under the
# GNU Lesser General Public License v3.0
# [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
#
# Permissions of this copyleft license are conditioned on making available
# complete source code of licensed works and modifications under the same
# license or the GNU GPLv3. Copyright and license notices must be preserved.
# Contributors provide an express grant of patent rights. However, a larger
# work using the licensed work through interfaces provided by the licensed
# work may be distributed under different terms and without source code for
# the larger work.
#
# Copyright (C) 2015 Jean Machuca,<[email protected]>
#
# Everyone is permitted to copy and distribute verbatim copies of this
# license document, but changing it is not allowed.
###
USER root
#Configure the internal user permissions
RUN mkdir -p /home/qcobjects/app && chown -R qcobjects:qcobjects /home/qcobjects
#Setting the work directory
WORKDIR /home/qcobjects/app
USER qcobjects
COPY package*.json ./
#Run the initial install init scripts for jasmine and cache verify
RUN jasmine init
RUN npm cache verify
RUN npm ci --save --only=production
# Bundle app source
COPY --chown=qcobjects:qcobjects . .
ENV PORT_HTTP 80
ENV PORT_HTTPS 443
EXPOSE $PORT_HTTP
EXPOSE $PORT_HTTPS
CMD [ "npm", "run", "start" ]