-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
43 lines (29 loc) · 1.05 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
FROM xpub/xpub:base
# RUN groupadd ygou
# RUN useradd ygou -g ygou
# USER node
WORKDIR ${HOME}
COPY package.json yarn.lock ./
COPY lerna.json .babelrc .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintrc ./
COPY packages packages
COPY now now
# COPY ./ ${HOME}/
#RUN [ "yarn", "config", "set", "n", "true" ]
# We do a development install because react-styleguidist is a dev dependency
#RUN [ "yarn", "install", "--frozen-lockfile" ]
# Remove cache and offline mirror
#RUN [ "yarn", "cache", "clean"]
#RUN [ "rm", "-rf", "/npm-packages-offline-cache"]
ENV NODE_ENV "development"
ENV PGHOST "postgres"
ENV PGUSER "postgres"
WORKDIR ${HOME}/packages/xpub-faraday
# RUN [ "npm", "run", "server "]
#RUN [ "yarn", "config", "set", "workspaces-experimental", "true" ]
# We do a development install because react-styleguidist is a dev dependency
RUN [ "yarn", "install", "--frozen-lockfile" ]
# Remove cache and offline mirror
#RUN [ "yarn", "cache", "clean"]
#RUN [ "rm", "-rf", "/npm-packages-offline-cache"]
EXPOSE 3000
CMD [ "npx", "pubsweet", "server" ]