Working multi-stage container build
This commit is contained in:
parent
2b1e350ce1
commit
107bb05d47
3 changed files with 30 additions and 8 deletions
7
justfile
7
justfile
|
@ -7,14 +7,15 @@ build-client:
|
|||
|
||||
# npm run build places the build in the server/public directory
|
||||
build-container: build-client
|
||||
cd server && podman build -t server .
|
||||
cd server && podman build -t fb-server .
|
||||
|
||||
start-release: build-container
|
||||
podman run -d -p 8080:8080 --name frostbyte server
|
||||
podman container rm -f frostbyte
|
||||
podman run -d -p 8080:8080 --name frostbyte fb-server
|
||||
|
||||
clean:
|
||||
podman container rm -f frostbyte
|
||||
podman image rm -f server
|
||||
podman image rm -f fb-server
|
||||
rm -rf client/dist
|
||||
rm -rf client/node_modules
|
||||
rm -rf server/public
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue