Skip to content

Commit

Permalink
Merge pull request #159 from hypersign-protocol/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Vishwas1 authored Nov 24, 2023
2 parents 300aa22 + a0aad2e commit a095683
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
24 changes: 7 additions & 17 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
FROM node:12.6.0-buster

# setting up the working dir
FROM node:16
WORKDIR /usr/src/app

# setting up env var from .env file
# COPY .env .
# RUN /bin/bash -c "source /usr/src/app/.env"

# pushing the code inside
COPY package*.json ./
COPY ./package.json .
COPY ./tsconfig.json .
COPY . .
RUN npm cache clean --force
RUN npm install
ADD . /usr/src/app
RUN rm -f .env*
CMD ["npm","run", "start:dev"]


# setting up the project
RUN npm run build
RUN npm run newdb

EXPOSE $PORT

CMD npm run bootstrap && npm run start
6 changes: 3 additions & 3 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "studio-server",
"name": "entity-studio-dashboard-service",
"version": "1.0.4",
"description": "Server for hypersign studio web portal",
"description": "Backend service for SSI playground",
"main": "dist/index",
"typings": "dist/index",
"typings": "dist/index",
"scripts": {
"setup": "npm run build && npm run newdb && npm run bootstrap",
"newdb": "npm run start -- --newdb",
Expand Down

0 comments on commit a095683

Please sign in to comment.