Merge branch 'compose-dev' into 'develop'
Support Docker local development See merge request soapbox-pub/soapbox!1851
This commit is contained in:
commit
849a55af56
2 changed files with 28 additions and 0 deletions
18
Dockerfile.dev
Normal file
18
Dockerfile.dev
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM node:18
|
||||
|
||||
RUN apt-get update &&\
|
||||
apt-get install -y inotify-tools &&\
|
||||
# clean up apt
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=development
|
||||
|
||||
COPY package.json .
|
||||
COPY yarn.lock .
|
||||
RUN yarn
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV DEVSERVER_URL=http://0.0.0.0:3036
|
||||
CMD yarn dev
|
10
compose-dev.yaml
Normal file
10
compose-dev.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
image: soapbox-dev
|
||||
ports:
|
||||
- "3036:3036"
|
||||
volumes:
|
||||
- .:/app
|
Loading…
Reference in a new issue