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

Configured Typescript compiler (C4gt) #74

Closed
wants to merge 7 commits into from
Closed
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
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ SENTRY_DSN=Your sentry dsn
SENTRY_ENV=development

OCR_URL=https://careocr.coronasafe.xyz/api/predict
S3_PROVIDER=GCP
S3_ENDPOINT=https://storage.googleapis.com
S3_ACCESS_KEY_ID=s3_bucket_access_key
S3_SECRET_ACCESS_KEY=s3_bucket_secret_key
S3_BUCKET_NAME=s3_bucket_name
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
flavor: |
latest=true
latest=false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
images/
images/

.DS_Store
24 changes: 21 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:17-alpine
#stage 1
FROM node:17-alpine AS build

WORKDIR /usr/src/app

Expand All @@ -9,8 +10,25 @@ RUN npm install

COPY . .

RUN chmod +x ./start.sh
RUN npm run compile

#stage 2
FROM node:17-alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install --production

COPY --from=build /usr/src/app/dist ./dist
COPY --from=build /usr/src/app/prisma ./prisma

#RUN chmod +x ./start.sh


EXPOSE 8090

ENTRYPOINT [ "./start.sh" ]
CMD npm prisma generate && npm prisma migrate deploy && npm run start

#ENTRYPOINT [ "./start.sh" ]
Loading