Skip to content

Commit

Permalink
Merge pull request #72 from cgtuebingen/hosting/docker-image
Browse files Browse the repository at this point in the history
Hosting/docker image Pull Request
  • Loading branch information
FabiKogWi authored Jul 1, 2024
2 parents de1aeab + 35aaede commit 7192440
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:21-alpine3.19
RUN mkdir /home/hisv
WORKDIR /home/hisv
COPY yarn.lock package.json ./
RUN yarn install
COPY . /home/hisv/
EXPOSE 3000
RUN yarn build
CMD ["yarn", "start", "--host", "0.0.0.0"]
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'
services:
hisv:
image: fabiuni/teamprojekt
ports:
- "3000:3000"
volumes:
- ./public:/home/hisv/public

0 comments on commit 7192440

Please sign in to comment.