Fix frontend dev docker setup

This commit is contained in:
Georg Krause 2022-06-30 14:10:19 +02:00
parent 087139732a
commit e7325fbb54
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
2 changed files with 17 additions and 1 deletions

View File

@ -2,7 +2,9 @@ version: "3"
services: services:
front: front:
build: front build:
context: front
dockerfile: Dockerfile.dev
env_file: env_file:
- .env.dev - .env.dev
- .env - .env

14
front/Dockerfile.dev Normal file
View File

@ -0,0 +1,14 @@
FROM node:16-buster
# needed to compile translations
RUN apt-get update && apt-get install -y jq
EXPOSE 8080
WORKDIR /app/
COPY scripts/ ./scripts/
ADD package.json yarn.lock ./
RUN yarn install
COPY . .
CMD ["yarn", "serve"]