-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For acceptance tests, we need to run an RP alongside the simulator
- Loading branch information
Showing
8 changed files
with
1,563 additions
and
40 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
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,4 @@ | ||
.dockerignore | ||
dist | ||
node_modules | ||
|
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,18 @@ | ||
FROM node:22.9.0@sha256:69e667a79aa41ec0db50bc452a60e705ca16f35285eaf037ebe627a65a5cdf52 as base | ||
WORKDIR /app | ||
COPY . ./ | ||
RUN npm install | ||
RUN npm run build | ||
|
||
FROM node:22.9.0@sha256:69e667a79aa41ec0db50bc452a60e705ca16f35285eaf037ebe627a65a5cdf52 as release | ||
WORKDIR /app | ||
COPY --chown=node:node --from=base /app/package*.json ./ | ||
COPY --chown=node:node --from=base /app/node_modules/ node_modules | ||
COPY --chown=node:node --from=base /app/dist/ dist | ||
|
||
ENV NODE_ENV "production" | ||
ENV PORT 3001 | ||
|
||
EXPOSE $PORT | ||
USER node | ||
CMD ["npm", "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
micro-rp: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "3001:3001" | ||
restart: on-failure | ||
network_mode: host |
Oops, something went wrong.