aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: f2b111ec9e9e528bd0e7bedeefd7c88a12479737 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM node:slim

ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV

RUN apt-get update
RUN apt-get install git make gcc g++ python libzmq3-dev -y

RUN git clone https://github.com/asoltys/coinos-server /app
WORKDIR /app

RUN yarn install

ENV SHELL /bin/bash

CMD ["yarn", "start"]
db from "$db/db"; import { DataTypes } from '@sequelize/core'; const attributes = { id: { type: DataTypes.INTEGER(11), allowNull: false, defaultValue: null, primaryKey: true, autoIncrement: true, comment: null, field: "id" }, requester_id: { type: DataTypes.INTEGER(11), allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "requester_id" }, recipient_id: { type: DataTypes.INTEGER(11), allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "recipient_id" }, memo: { type: DataTypes.TEXT, allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "memo" }, createdAt: { type: DataTypes.DATE, allowNull: false, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "createdAt" }, updatedAt: { type: DataTypes.DATE, allowNull: false, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "updatedAt" }, }; const options = { tableName: "requests", comment: "", indexes: [] }; db["Request"] = db.define("requests_model", attributes, options);