-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (29 loc) · 1.38 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
#-----------------------------------------------------------------------------------------------------------------------
# Tome Dockerfile
#-----------------------------------------------------------------------------------------------------------------------
FROM node:lts-alpine
EXPOSE 4321
MAINTAINER Christopher S. Case <chris.case@g33xnexus.com>
#-----------------------------------------------------------------------------------------------------------------------
RUN mkdir -p /app/db
WORKDIR /app
#-----------------------------------------------------------------------------------------------------------------------
# Build Tome Docker
#-----------------------------------------------------------------------------------------------------------------------
# Build deps (for customization support)
COPY .babelrc /app/.babelrc
COPY .browserslistrc /app/.browserslistrc
COPY .editorconfig /app/.editorconfig
COPY .npmrc /app/.npmrc
COPY package.json /app/package.json
COPY assets /app/assets
COPY client /app/client
COPY server /app/server
COPY config.js /app/config.js
COPY config.site.js /app/config.site.js
COPY knexfile.js /app/knexfile.js
COPY server.js /app/server.js
# Install deps and build dist
RUN yarn && yarn build
CMD [ "node", "server.js", "# tome server" ]
#-----------------------------------------------------------------------------------------------------------------------