Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
dde1de26
Commit
dde1de26
authored
Apr 15, 2026
by
Kantz
Browse files
anpassung der docker struktur
parent
4053103d
Changes
3
Hide whitespace changes
Inline
Side-by-side
math-tutor/docker/nginx.conf
deleted
100644 → 0
View file @
4053103d
server
{
listen
80
;
server_name
_
;
root
/usr/share/nginx/html
;
index
index.html
;
location
/
{
try_files
$uri
/index.html
;
}
location
/api/
{
proxy_pass
http://backend:8000/api/
;
proxy_http_version
1
.1
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-Proto
$scheme
;
}
}
math-tutor/frontend/Dockerfile
View file @
dde1de26
FROM
node:22-alpine
AS
build
WORKDIR
/app
RUN
corepack
enable
COPY
package.json pnpm-lock.yaml ./
...
...
@@ -10,10 +9,6 @@ RUN pnpm install --frozen-lockfile
COPY
. .
RUN
pnpm run build
FROM
alpine:3.20
WORKDIR
/app
COPY
--from=build /app/dist ./dist
CMD
["sh", "-c", "mkdir -p /dist && cp -r /app/dist/. /dist/ && tail -f /dev/null"]
FROM
nginx:1.27-alpine
COPY
--from=build /app/dist /usr/share/nginx/html
COPY
nginx.conf /etc/nginx/conf.d/default.conf
math-tutor/frontend/nginx.conf
0 → 100644
View file @
dde1de26
server
{
listen
3000
;
server_name
_
;
root
/usr/share/nginx/html
;
index
index.html
;
location
/
{
try_files
$uri
$uri
/
/index.html
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment