Compare commits

...

5 commits

4 changed files with 21 additions and 11 deletions

View file

@ -1,11 +1,6 @@
/*
# makefile
!/makefile
# config
!/.eslintrc.yml
!/tsconfig.json
# node modules

View file

@ -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

View file

@ -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:

View file

@ -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()]),
]);