Compare commits
5 commits
29bd672e0f
...
378a2e093e
Author | SHA1 | Date | |
---|---|---|---|
378a2e093e | |||
f89b159fe6 | |||
6440077b98 | |||
8a26f13bf5 | |||
7a6dbe32d0 |
4 changed files with 21 additions and 11 deletions
|
@ -1,11 +1,6 @@
|
|||
|
||||
/*
|
||||
|
||||
# makefile
|
||||
!/makefile
|
||||
|
||||
# config
|
||||
!/.eslintrc.yml
|
||||
!/tsconfig.json
|
||||
|
||||
# node modules
|
||||
|
|
12
Dockerfile
12
Dockerfile
|
@ -8,14 +8,16 @@ RUN apk update \
|
|||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
RUN npm install \
|
||||
&& apk del bash git openssh
|
||||
|
||||
|
||||
COPY . .
|
||||
COPY tsconfig.json ./
|
||||
COPY src ./src
|
||||
|
||||
RUN npm run build \
|
||||
&& npm prune --production \
|
||||
&& apk del bash git openssh
|
||||
&& npm prune --production
|
||||
|
||||
COPY static ./static/
|
||||
|
||||
EXPOSE 30000
|
||||
|
||||
|
|
13
makefile
13
makefile
|
@ -1,9 +1,22 @@
|
|||
PAR := $(MAKE) -j 128
|
||||
DOCKER_NAME := pleshevski
|
||||
DOCKER_TAG := pleshevski
|
||||
|
||||
|
||||
watch:
|
||||
$(PAR) hr ts-w
|
||||
|
||||
docker-restart: docker-stop docker-run
|
||||
|
||||
docker-stop:
|
||||
docker rm ${DOCKER_NAME} --force
|
||||
|
||||
docker-run:
|
||||
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
|
||||
|
||||
docker-build:
|
||||
docker build -t ${DOCKER_TAG} .
|
||||
|
||||
build: ts
|
||||
|
||||
start:
|
||||
|
|
|
@ -14,7 +14,7 @@ export function Layout(page: AnyNode): Elem {
|
|||
rel: "stylesheet",
|
||||
href: "/static/styles.css",
|
||||
}),
|
||||
E("title", "hello world"),
|
||||
E("title", "pleshevski"),
|
||||
]),
|
||||
E("body", [div({ id: "root" }, page), config.isDev && HotReloadScript()]),
|
||||
]);
|
||||
|
|
Loading…
Add table
Reference in a new issue