Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·78 lines (68 loc) · 2.94 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·78 lines (68 loc) · 2.94 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM alpine/git:latest
FROM alpine/openssl
FROM certbot/certbot
FROM docker/extension-npm-installer
FROM --platform=$BUILDPLATFORM node:lts-alpine AS builder
###
# QCObjects 2.5
# ________________
#
# Author: Jean Machuca <correojean@gmail.com>
#
# 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,<correojean@gmail.com>
#
# Everyone is permitted to copy and distribute verbatim copies of this
# license document, but changing it is not allowed.
###
LABEL org.quickcorp.qcobjects.cli.version="2.5.108-beta"
LABEL vendor1="QuickCorp"
LABEL vendor2="QCObjects"
LABEL org.quickcorp.qcobjects.release-date="2019-06-01"
LABEL org.quickcorp.qcobjects.version.is-production=""
RUN npm install -g npm@latest
RUN npm config set legacy-peer-deps true --global
RUN npm install -g qcobjects qcobjects-sdk qcobjects-cli
RUN mkdir -p /etc/letsencrypt/live/
RUN mkdir -p /etc/letsencrypt/live/mynewapp.qcobjects.com/
RUN chmod 775 /etc/letsencrypt/live/
RUN chmod 777 /etc/letsencrypt/live/mynewapp.qcobjects.com/
RUN addgroup -S qcobjects && adduser -s /bin/bash -S qcobjects -G qcobjects
RUN mkdir -p /home/qcobjects && chown -R qcobjects:qcobjects /home/qcobjects
RUN mkdir -p /etc/qcobjects
RUN chmod +w /home/qcobjects
RUN echo "Welcome to... "
RUN echo ""
RUN echo " .d88888b. .d8888b. .d88888b. 888 d8b 888"
RUN echo "d88P Y88bd88P Y88bd88P Y88b888 Y8P 888"
RUN echo "888 888888 888888 888888 888"
RUN echo "888 888888 888 88888888b. 8888 .d88b. .d8888b888888.d8888b"
RUN echo "888 888888 888 888888 88b 888d8P Y8bd88P 888 88K"
RUN echo "888 Y8b 888888 888888 888888 888 88888888888888 888 Y8888b."
RUN echo "Y88b.Y8b88PY88b d88PY88b. .d88P888 d88P 888Y8b. Y88b. Y88b. X88"
RUN echo " Y888888 Y8888P Y88888P 88888P 888 Y8888 Y8888P Y888 88888P"
RUN echo " Y8b 888"
RUN echo " d88P"
RUN echo " 888P"
RUN echo ""
RUN echo ""
WORKDIR /home/qcobjects
USER qcobjects
COPY package*.json ./
RUN npm cache verify
RUN npm ci --save --only=production
# Bundle app source
COPY --chown=qcobjects:qcobjects . .
CMD ["qcobjects", "launch", "mynewapp"]