Base Templates

This commit is contained in:
2025-12-10 20:39:40 +01:00
commit 10dfdd5605
7 changed files with 120 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# For testing
FROM golang:1.24-alpine AS builder
# FROM node:22-alpine AS builder
# FROM python:3.12-alpine AS builder
# FROM eclipse-temurin:21-jdk-alpine AS builder
# FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS builder
# FROM rust:1.81-alpine AS builder
WORKDIR /app
COPY . .
RUN apk add --no-cache make
RUN make install
# CMD ["ls"]
+23
View File
@@ -0,0 +1,23 @@
services:
app:
container_name: name
image: imagename:imagetag
restart: unless-stopped # no | on-failure | always | unless-stopped
environment:
APP_ENV: development
APP_DEBUG: "false"
ports:
- "8080:80" # http://localhost:8080 -> container 80
# or:
network_mode: host
volumes:
- /absolute/host/path:/container/path
# Service dependencies
depends_on:
db:
condition: service_healthy