Some helpful comments
This commit is contained in:
parent
a01d56405d
commit
dced187fc7
4 changed files with 19 additions and 16 deletions
|
@ -4,7 +4,7 @@
|
|||
# make it available in the public directory.
|
||||
FROM docker.io/node:latest as client
|
||||
WORKDIR /build
|
||||
ADD ./client-solid /build
|
||||
ADD client-solid /build
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
|
@ -13,7 +13,7 @@ RUN npm run build
|
|||
# that runs cleanly without depending on glibc.
|
||||
FROM docker.io/rust:latest as builder
|
||||
WORKDIR /build
|
||||
ADD ./server /build
|
||||
ADD server /build
|
||||
RUN apt update
|
||||
RUN apt install musl musl-dev musl-tools -y
|
||||
RUN rustup target add x86_64-unknown-linux-musl
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Note that building this requires the proper build context
|
||||
|
||||
# This file builds the server only, and does not copy the frontend build.
|
||||
# This is useful for frontend development, as it allows you to run the frontend
|
||||
# with an actual backend.
|
||||
|
@ -8,7 +10,7 @@
|
|||
# that runs cleanly without depending on glibc.
|
||||
FROM docker.io/rust:latest as builder
|
||||
WORKDIR /build
|
||||
ADD ./server /build
|
||||
ADD server /build
|
||||
RUN apt update
|
||||
RUN apt install musl musl-dev musl-tools -y
|
||||
RUN rustup target add x86_64-unknown-linux-musl
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
frostbyte:
|
||||
container_name: frostbyte
|
||||
build:
|
||||
context: "."
|
||||
dockerfile: Containerfile
|
||||
ports:
|
||||
- '8080:8080'
|
||||
restart: always
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
image: frostbyte
|
||||
frostbyte:
|
||||
container_name: frostbyte
|
||||
build:
|
||||
context: "."
|
||||
dockerfile: Containerfile
|
||||
ports:
|
||||
- '8080:8080'
|
||||
restart: always
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
image: frostbyte
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# This is not working
|
||||
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
|
@ -7,7 +9,6 @@ metadata:
|
|||
spec:
|
||||
containers:
|
||||
- image: "."
|
||||
# - image: localhost/fb-server:latest
|
||||
name: frostbyte
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
|
Loading…
Reference in a new issue