1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

chore: docker server certificates for development

This commit is contained in:
Saad Jutt
2021-11-15 13:00:06 +05:00
parent ca49aad153
commit 9ee7951816
4 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
PORT=<port for sasjs server (api)>
PORT_API=<port for sasjs server (api)>
PORT_WEB=<port for sasjs web component(react)>
ACCESS_TOKEN_SECRET=<secret>
REFRESH_TOKEN_SECRET=<secret>

View File

@@ -2,7 +2,8 @@ FROM node:lts-alpine
WORKDIR /usr/server/api
COPY ["package.json","package-lock.json", "./"]
RUN npm ci
COPY . .
COPY ./api .
COPY ./certificates ../certificates
# RUN chown -R node /usr/server/api
# USER node
CMD ["npm","start"]

View File

@@ -5,6 +5,7 @@
"main": "./src/server.ts",
"scripts": {
"prestart": "npm run swagger",
"prestart:prod": "npm run swagger",
"start": "nodemon ./src/server.ts",
"start:prod": "nodemon ./src/prod-server.ts",
"build": "rimraf build && tsc",

View File

@@ -3,7 +3,9 @@ version: '3.4'
services:
sasjs_server_api:
image: sasjs_server_api
build: ./api
build:
context: .
dockerfile: DockerfileApi
environment:
MODE: server
CORS: enable