Some helpful comments

This commit is contained in:
Imbus 2023-10-20 03:28:35 +02:00
parent a01d56405d
commit dced187fc7
4 changed files with 19 additions and 16 deletions

View file

@ -4,7 +4,7 @@
# make it available in the public directory. # make it available in the public directory.
FROM docker.io/node:latest as client FROM docker.io/node:latest as client
WORKDIR /build WORKDIR /build
ADD ./client-solid /build ADD client-solid /build
RUN npm install RUN npm install
RUN npm run build RUN npm run build
@ -13,7 +13,7 @@ RUN npm run build
# that runs cleanly without depending on glibc. # that runs cleanly without depending on glibc.
FROM docker.io/rust:latest as builder FROM docker.io/rust:latest as builder
WORKDIR /build WORKDIR /build
ADD ./server /build ADD server /build
RUN apt update RUN apt update
RUN apt install musl musl-dev musl-tools -y RUN apt install musl musl-dev musl-tools -y
RUN rustup target add x86_64-unknown-linux-musl RUN rustup target add x86_64-unknown-linux-musl

View file

@ -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 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 # This is useful for frontend development, as it allows you to run the frontend
# with an actual backend. # with an actual backend.
@ -8,7 +10,7 @@
# that runs cleanly without depending on glibc. # that runs cleanly without depending on glibc.
FROM docker.io/rust:latest as builder FROM docker.io/rust:latest as builder
WORKDIR /build WORKDIR /build
ADD ./server /build ADD server /build
RUN apt update RUN apt update
RUN apt install musl musl-dev musl-tools -y RUN apt install musl musl-dev musl-tools -y
RUN rustup target add x86_64-unknown-linux-musl RUN rustup target add x86_64-unknown-linux-musl

View file

@ -1,14 +1,14 @@
version: '3.3' version: '3.3'
services: services:
frostbyte: frostbyte:
container_name: frostbyte container_name: frostbyte
build: build:
context: "." context: "."
dockerfile: Containerfile dockerfile: Containerfile
ports: ports:
- '8080:8080' - '8080:8080'
restart: always restart: always
logging: logging:
options: options:
max-size: 10m max-size: 10m
image: frostbyte image: frostbyte

View file

@ -1,3 +1,5 @@
# This is not working
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
@ -7,7 +9,6 @@ metadata:
spec: spec:
containers: containers:
- image: "." - image: "."
# - image: localhost/fb-server:latest
name: frostbyte name: frostbyte
ports: ports:
- containerPort: 8080 - containerPort: 8080