-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧱 - Enhanced Cross-Platform Compatibility and Docker Environment Setup (
#374) Co-authored-by: Matan Mashraki <[email protected]>
- Loading branch information
Showing
4 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
.git | ||
.gitignore | ||
.dockerignore | ||
Dockerfile | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM node:22 | ||
|
||
ENV ENVIRONMENT=development | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package.json yarn.lock ./ | ||
|
||
COPY . . | ||
|
||
RUN yarn install --verbose | ||
|
||
RUN yarn rename-dev-configs | ||
|
||
EXPOSE 8081 | ||
|
||
# To start the app after building it using `docker build -t better-rail-app .` with docker | ||
# run: `docker run -it -p 8081:8081 better-rail-app yarn start` | ||
|
||
# CMD ["yarn", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters