Skip to content

Commit

Permalink
Moves Dockerfile to root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoFerraz committed Feb 16, 2024
1 parent afdc19d commit fb340f4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:16.19-alpine

WORKDIR /app
RUN apk add git

COPY cred-manager/package.json /app/package.json
COPY cred-manager/yarn.lock /app/yarn.lock

RUN yarn install --ignore-scripts --frozen-lockfile

COPY cred-manager/ /app/
COPY cred-manager/.env.docker /app/.env

RUN yarn prisma db push
RUN yarn build

RUN git clone -b backup https://github.com/sudoFerraz/source-cred-instance /instance
COPY cred-manager/.env.docker /instance/.env

WORKDIR /instance
RUN yarn install

WORKDIR /app

EXPOSE 8080

CMD ["yarn", "start"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
backend:
build:
context: .
dockerfile: ./cred-manager/Dockerfile
dockerfile: ./Dockerfile
environment:
- NEW_RELIC_APP_NAME=ENROLLMENT_LOCAL
- NODE_ENV=development
Expand Down
2 changes: 1 addition & 1 deletion heroku.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build:
docker:
backend: cred-manager/Dockerfile
backend: Dockerfile

0 comments on commit fb340f4

Please sign in to comment.