Skip to content

Commit

Permalink
Merge pull request #138 from apartresearch/136-dockerize
Browse files Browse the repository at this point in the history
136 dockerize
  • Loading branch information
albertsgarde authored Jan 26, 2024
2 parents 87c64d0 + b55532f commit 4d7744f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ version: '3'

services:
backend:
container_name: deepdecipher-backend
build:
context: ..
dockerfile: docker/backend.dockerfile
Expand All @@ -20,6 +21,7 @@ services:
ports:
- 8080:8080
frontend:
container_name: deepdecipher-frontend
build:
context: ..
dockerfile: docker/frontend.dockerfile
Expand Down
4 changes: 2 additions & 2 deletions docker/frontend.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:18.19-buster-slim as frontend-build
FROM node:18.19-alpine3.19 as frontend-build
WORKDIR /deepdecipher
COPY ./frontend/package.json ./frontend/package-lock.json ./
RUN npm install --frozen-lockfile

COPY ./frontend/ .
RUN npm run build

FROM node:18.19-buster-slim as frontend-prod
FROM node:18.19-alpine3.19 as frontend-prod
WORKDIR /deepdecipher
COPY --from=frontend-build /deepdecipher/ ./

Expand Down

0 comments on commit 4d7744f

Please sign in to comment.