backend: update packaging and add build-image command + Dockerfile

Co-authored-by: Ivan Shmidt <bahoc47@gmail.com>
This commit is contained in:
Patrik Oldsberg
2020-06-25 18:05:11 +02:00
parent 84b55c10ca
commit 66e2bfe073
2 changed files with 18 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
FROM node:12
WORKDIR /usr/src/app
COPY . .
RUN yarn install --frozen-lockfile --production
CMD ["node", "packages/backend"]
+9 -1
View File
@@ -1,19 +1,27 @@
{
"name": "example-backend",
"version": "0.1.1-alpha.12",
"main": "dist/index.cjs.js",
"main": "src/index.ts",
"types": "src/index.ts",
"private": true,
"license": "Apache-2.0",
"engines": {
"node": ">=12"
},
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
"types": "dist/index.d.ts"
},
"scripts": {
"build": "backstage-cli backend:build",
"build-image": "backstage-cli backend:build-image example-backend",
"start": "backstage-cli backend:dev",
"lint": "backstage-cli lint",
"test": "backstage-cli test",
"clean": "backstage-cli clean",
"prepack": "backstage-cli prepack",
"postpack": "backstage-cli postpack",
"migrate:create": "knex migrate:make -x ts"
},
"dependencies": {