-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from serlo/build/transpile-bundle-backend-esbuild
build(backend): transpile and bundle using esbuild
- Loading branch information
Showing
8 changed files
with
284 additions
and
11 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,17 @@ | ||
FROM node:20.17.0 as build | ||
WORKDIR /usr/src/app | ||
|
||
COPY . . | ||
RUN yarn install --immutable | ||
|
||
RUN yarn build | ||
|
||
FROM node:20.17.0 as production | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY --from=build /usr/src/app/dist dist | ||
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT ["node", "dist/backend/index.cjs"] |
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ RUN yarn build | |
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT ["yarn", "start:dev"] | ||
ENTRYPOINT ["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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[program:serlo-app] | ||
directory=/home/%(ENV_USER)s/serlo-editor-as-lti-tool | ||
command=yarn start:dev | ||
command=yarn start | ||
autostart=true | ||
autorestart=true | ||
environment=NODE_ENV=production |
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
Oops, something went wrong.