forked from transcom/mymove
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.storybook
34 lines (24 loc) · 1.05 KB
/
Dockerfile.storybook
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
FROM milmove/circleci-docker:milmove-app-browsers-1e5a1038cb264651fbd844b82489401a476e9f7e
EXPOSE 6006
COPY --chown=circleci:circleci scripts/start-storybook-tests /home/circleci/project/scripts/
COPY --chown=circleci:circleci [ \
"package.json", \
"yarn.lock", \
".yarnrc", \
"config-overrides.js", \
"jsconfig.json", \
"wallaby.js", \
".eslintrc", ".eslintignore", \
".prettierrc", ".prettierignore", \
"/home/circleci/project/" \
]
# we can copy node modules from previous build step
COPY --chown=circleci:circleci node_modules/ /home/circleci/project/node_modules/
# yarn needs to run from the project root
WORKDIR /home/circleci/project
# ENTRYPOINT is set by parent docker image, this is intentionally not overridden to allow support for running chrome in the container for loki tests.
CMD yarn storybook --ci
RUN yarn install
COPY --chown=circleci:circleci .storybook/ /home/circleci/project/.storybook/
COPY --chown=circleci:circleci .loki/ /home/circleci/project/.loki/
COPY --chown=circleci:circleci src/ /home/circleci/project/src/