Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
joschahenningsen committed Dec 13, 2022
1 parent 7bc641f commit 2ce10ed
Show file tree
Hide file tree
Showing 26 changed files with 307 additions and 2,928 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "composer"
- package-ecosystem: "go"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/branches.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/master.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/vendor/
/.idea
/.idea
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM composer:2.4.4 as composer
FROM golang:1.19-alpine3.17 as builder

WORKDIR /app
COPY ./composer.json /app
COPY ./composer.lock /app
COPY . .

RUN composer install --no-dev
RUN CGO_ENABLED=0 go build -ldflags="-extldflags=-static" -o /proxy cmd/proxy/proxy.go

FROM webdevops/php-nginx:8.2-alpine
ENV WEB_DOCUMENT_ROOT=/app/public
COPY ./src /app/public
COPY --from=composer /app /app
FROM scratch

COPY --from=builder /proxy /proxy

EXPOSE 8080

CMD ["/proxy"]
340 changes: 0 additions & 340 deletions LICENSE

This file was deleted.

16 changes: 0 additions & 16 deletions README.md

This file was deleted.

11 changes: 11 additions & 0 deletions cmd/proxy/proxy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
"github.com/tum-dev/calendar-proxy/internal"
"log"
)

func main() {
app := &internal.App{}
log.Println(app.Run())
}
23 changes: 0 additions & 23 deletions composer.json

This file was deleted.

Loading

0 comments on commit 2ce10ed

Please sign in to comment.