chore: added deployment scripts
This commit is contained in:
parent
9485ede013
commit
a8b506a281
@ -1,4 +1,4 @@
|
|||||||
FROM node:14-alpine3.16
|
FROM node:lts-alpine3.20
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
19
makefile
Normal file
19
makefile
Normal 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)
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user