Commit e95ee2de authored by nanahira's avatar nanahira

formats

parent 5eb8b2f8
FROM node:buster-slim FROM node:buster-slim
RUN npm -g install typescript ts-node RUN npm -g install typescript
RUN apt update && \ RUN apt update && \
apt -y install build-essential python3 && \ apt -y install build-essential python3 && \
...@@ -7,6 +7,7 @@ RUN apt update && \ ...@@ -7,6 +7,7 @@ RUN apt update && \
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm ci && \
npm run build
COPY . ./ COPY . ./
CMD ["ts-node", "./run.ts"] CMD ["node", "./run.js"]
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
"description": "I hate hisoutensoku", "description": "I hate hisoutensoku",
"main": "run.js", "main": "run.js",
"scripts": { "scripts": {
"start": "ts-node run.ts" "build": "tsc",
"start": "node run.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment