Added dockerfile
This commit is contained in:
parent
2f80222293
commit
42164bcac5
4
Reader/Dockerfile
Normal file
4
Reader/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM bskjon/azuljava:17
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
COPY ./reader.jar /usr/share/app/app.jar
|
||||||
@ -46,4 +46,9 @@ dependencies {
|
|||||||
|
|
||||||
tasks.test {
|
tasks.test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.bootJar {
|
||||||
|
archiveFileName.set("reader.jar")
|
||||||
|
launchScript()
|
||||||
}
|
}
|
||||||
15
pyMetadata/Dockerfile
Normal file
15
pyMetadata/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Bruk en passende baseimage for Python-applikasjonen din
|
||||||
|
FROM python:3.8-slim-buster
|
||||||
|
|
||||||
|
# Sett arbeidskatalogen til /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Kopier requirements.txt-filen og installer avhengigheter
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
# Kopier resten av prosjektfilene
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Start applikasjonen
|
||||||
|
CMD ["python3", "-u", "app.py"]
|
||||||
Loading…
Reference in New Issue
Block a user