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

Notifs for Departure #342

Open
wants to merge 7 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
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules/

# Specific Files
config.json
service-account-credentials.json

# File Types
*.envrc
Expand Down
21 changes: 5 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# DEVELOPMENT
FROM node:10 AS development
FROM node:20.0.0
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json .
RUN npm install
COPY . .
ENV NODE_ENV development
EXPOSE 3000
CMD npm run start:dev

# PRODUCTION
FROM node:10.15-alpine AS release
WORKDIR /usr/src/app
COPY . .
COPY --from=development /usr/src/app/node_modules /usr/src/app/node_modules
ENV NODE_ENV production
RUN npm run build:prod
EXPOSE 3000
CMD npm run serve
RUN npm install --force
CMD npm run start
#CMD /bin/sh
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services:
node:
build:
context: .
target: development
env_file: .envrc
ports:
- "3000:3000"
Expand All @@ -13,7 +12,7 @@ services:
- /usr/src/app/node_modules

ghopper:
image: cornellappdev/transit-ghopper:06_01_24
image: cornellappdev/transit-ghopper:08_24_24
ports:
- "8988:8988"

Expand All @@ -28,7 +27,7 @@ services:
- "8987:8987"

live-tracking:
image: cornellappdev/transit-python:06_01_24
image: cornellappdev/transit-python:11_05_24
env_file: python.envrc
ports:
- "5000:5000"
1 change: 1 addition & 0 deletions envrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ PORT=3000
PYTHON_APP=live-tracking
RELEASE_URL=http://localhost:3001/
TOKEN=TOKEN
FCM_AUTH_KEY_PATH=FCM_AUTH_KEY_PATH
Loading