-
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.
- Loading branch information
1 parent
4a1cf2d
commit 37e4825
Showing
4 changed files
with
76 additions
and
0 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,21 @@ | ||
FROM node:17-alpine3.15 | ||
|
||
RUN mkdir -p /app | ||
|
||
# Create app directory | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
# Bundle app source | ||
COPY . . | ||
|
||
|
||
EXPOSE $PORT | ||
# Set host to localhost / the docker image | ||
ENV PORT=$PORT | ||
|
||
|
||
# Start the app | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# Nerd chatbot | ||
Simple chatbot made with express and svelte :) | ||
|
||
|
||
|
||
## Installation | ||
Local installation | ||
|
||
```bash | ||
cd ./nerdChatBot | ||
npm install | ||
npm run | ||
``` | ||
```bash | ||
cd ./nerdChatBot/frontend | ||
npm install | ||
npm run | ||
``` | ||
You can find a docker image for frontend and backend to be used in docker-compose |
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,12 @@ | ||
version: '3' | ||
services: | ||
nerdbot-frontend: | ||
image: nerdbot-frontend:latest | ||
environment: | ||
PORT: 5100 | ||
ports: | ||
- 5100:5100 | ||
nerdbot-backend: | ||
image: nerdbot-backend:latest | ||
ports: | ||
- 3000:3000 |
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,23 @@ | ||
FROM node:17-alpine3.15 | ||
|
||
RUN mkdir -p /app | ||
|
||
# Create app directory | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
# Bundle app source | ||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
EXPOSE $PORT | ||
# Set host to localhost / the docker image | ||
ENV PORT=$PORT | ||
ENV HOST=0.0.0.0 | ||
|
||
|
||
# Start the app | ||
CMD [ "npm", "start" ] |