Skip to content

Commit

Permalink
fix docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Dec 13, 2023
1 parent fcd7201 commit b2ba6b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ RUN apt-get update -qq && \
COPY . .

RUN npm i -g webpack-cli
RUN npm ci
RUN npm run dist:all
RUN make

# Final stage for app image
FROM base
Expand All @@ -35,4 +34,4 @@ COPY --from=build /app /app

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "npm", "start"]
CMD [ "npm", "run", "demo-server"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"clean": "make clean",
"test": "standard",
"start": "make serve",
"demo-server": "cd demo-server && npm ci && npm start",
"dist": "make",
"lint": "standard",
"container:build": "docker build . -t yjs-demos",
Expand Down

0 comments on commit b2ba6b3

Please sign in to comment.