Skip to content

Commit 6821803

Browse files
Patrick RPatrick R
Patrick R
authored and
Patrick R
committed
first commit
0 parents  commit 6821803

File tree

876 files changed

+94280
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

876 files changed

+94280
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.env.sample

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
DB_PASSWORD=
2+
DB_ROOT_PASSWORD=
3+
DOCKER_USERNAME=
4+
DOCKER_PASSWORD=

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/*
2+
content/apps/*
3+
content/data/*
4+
content/images/*
5+
.env

Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Stage-1 dependencies
2+
FROM node:latest as dep
3+
4+
RUN mkdir /sample
5+
WORKDIR /sample
6+
7+
ADD package.json .
8+
RUN ["npm", "i", "--only=production"]
9+
10+
11+
# Stage-2 final image
12+
FROM node:alpine
13+
14+
WORKDIR /app
15+
COPY . .
16+
17+
COPY --from=dep /sample/node_modules ./node_modules
18+
19+
EXPOSE 2368
20+
CMD ["npm", "start", "--production"]

0 commit comments

Comments
 (0)