Support Docker local development

This commit is contained in:
Alex Gleason 2022-10-27 12:03:32 -05:00
parent 12b6f58f3e
commit cfedc89e7e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 28 additions and 0 deletions

18
Dockerfile.dev Normal file
View 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
View File

@ -0,0 +1,10 @@
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
image: soapbox-dev
ports:
- "3036:3036"
volumes:
- .:/app