We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 649f23c commit 81fed2bCopy full SHA for 81fed2b
1 file changed
Dockerfile.storybook
@@ -1,6 +1,5 @@
1
FROM ghcr.io/storydocker/storydocker:main
2
3
-# Destination directory inside the container - one level, do not use subdirectories
4
ARG WORKSPACE_DIR=application
5
6
# Localhost port for Storybook
@@ -9,17 +8,12 @@ ARG STORYBOOK_PORT=6006
9
8
# Internal-to-docker variable for Storybook port
10
ENV SB_PORT=$STORYBOOK_PORT
11
12
-# This is optional. Sets the level of logging that you see
13
ENV NPM_CONFIG_LOGLEVEL warn
14
15
-# Install dependencies first, as they change less often than code.
16
-COPY package.json ./workspaces/${WORKSPACE_DIR}/
17
RUN npm i && npm cache clean --force
18
19
-# Copy entire workspace into container
20
COPY . ./workspaces/${WORKSPACE_DIR}/
21
22
-# Make storybook port available externally
23
EXPOSE $STORYBOOK_PORT
24
25
# run storybook app
0 commit comments