Skip to content

Commit

Permalink
Try for a streamlined docker app, without dev dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Mar 6, 2024
1 parent 86ea564 commit 317f631
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ COPY example-package.json /app/tte/package.json
WORKDIR /app/tte/
RUN yarn && \
npx theia build --app-target=\"browser\" --mode development && \
# yarn --production && \
yarn autoclean --init && \
echo *.ts >> .yarnclean && \
echo *.ts.map >> .yarnclean && \
echo *.spec.* >> .yarnclean && \
yarn cache clean && \
du -hs /app/tte
du -hs /app/tte && \
du -hs /app/tte/node_modules && \
du -hs /app/tte/node_modules/timeline-chart

FROM node:16.20.2-bookworm-slim

Expand Down
5 changes: 3 additions & 2 deletions examples/docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
yarn start --hostname 0.0.0.0 --port 4000
#!/usr/bin/env bash -x
node ./src-gen/backend/main.js --hostname 0.0.0.0 --port 4000
# yarn start --hostname 0.0.0.0 --port 4000

0 comments on commit 317f631

Please sign in to comment.