chore: added deployment scripts

This commit is contained in:
Ward Truyen 2024-07-23 11:53:46 +02:00
parent 9485ede013
commit a8b506a281
2 changed files with 20 additions and 1 deletions

View File

@ -1,4 +1,4 @@
FROM node:14-alpine3.16
FROM node:lts-alpine3.20
WORKDIR /app
COPY . .

19
makefile Normal file
View File

@ -0,0 +1,19 @@
# makefile for sample commands
#
imageName := sample-site:v1
default: docker
test:
@echo test1: $?
@echo test2: $0
@echo test3: $(imageName)
docker: docker-build docker-run
docker-build:
docker build -t $(imageName) .
docker-run:
docker run -dp 127.0.0.1:3000:3000 $(imageName)