-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Dockerfile and docker-compose for web-only debugging/environment #112
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:22 | ||
|
||
RUN npm i -g pnpm | ||
|
||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should the command be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That command initiated a cli based interactive installer. I tried a bunch of flags and ended up with this as the simplest method. |
||
|
||
ENV PATH="/root/.cargo/bin:$PATH" | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN pnpm install | ||
|
||
EXPOSE 1420 | ||
|
||
CMD ["pnpm", "run", "dev", "--host"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
wealthfolio-app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "1420:1420" | ||
volumes: | ||
- ./src:/app/src | ||
- ./public:/app/public | ||
environment: | ||
- PATH=/root/.cargo/bin:${PATH} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node:latest pls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would tend to favor the fixed version as well to promote predictability, backwards compatibility and security. Using the latest tag would promote builds to non-lts versions which could introduce unwanted/unknown issues.
When updating versions, then the Dockerfile should simply be updated as well.