Skip to content
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

feature/updating #133

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:10.15
- image: circleci/node:16.13
- image: circleci/mongo:latest
steps:
- checkout
Expand All @@ -15,4 +15,4 @@ jobs:
- ./node_modules
- run:
name: test
command: npm test
command: npm test
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
node_modules/
.circleci/
.optic/
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ LOG_LEVEL='debug'
MAILGUN_API_KEY='1212312312312'
MAILGUN_USERNAME='api'
MAILGUN_DOMAIN='my-domain.com'

AGENDADASH_USER=test
AGENDADASH_PWD=test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ yarn-debug.log*
yarn-error.log*
.env
build
.vscode/
!.vscode/launch.json
!.vscode/tasks.json
6 changes: 3 additions & 3 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM gitpod/workspace-full:latest
FROM gitpod/workspace-mongodb

RUN bash -c ". .nvm/nvm.sh \
&& nvm install 14.9.0 \
&& nvm use 14.9.0 \
&& nvm alias default 14.9.0"
&& nvm install lts/gallium \
&& nvm use lts/gallium \
&& nvm alias default lts/gallium"

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:lts-alpine as builder

WORKDIR /app

COPY . /app

RUN yarn install
RUN yarn build


FROM node:lts-alpine

ENV NODE_ENV production

WORKDIR /app

COPY --from=builder /app/package.json /app
COPY --from=builder /app/build /app/build

RUN yarn install

EXPOSE 3000

CMD [ "yarn", "serve" ]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Maybe we can transform this into something useful, a more advanced example, just

## Development

We use `node` version `14.9.0`
We use `node` version `^16.0.0`

```
nvm install 14.9.0
nvm install lts/gallium
```

```
nvm use 14.9.0
nvm use lts/gallium
```

The first time, you will need to run
Expand Down
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "3"

services:
mongodb:
image: mongo:latest
networks:
- internal


api:
build:
context: .
depends_on:
- "mongodb"
volumes:
- "./.env:/app/.env"
networks:
- internal
ports:
- "3000:3000"

networks:
internal:
external: false
Loading