diff options
author | Dessalines <happydooby@gmail.com> | 2019-04-05 22:29:20 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-04-05 22:29:20 -0700 |
commit | 397f65c81ef17f4c7e5e2847155347ae1377e25b (patch) | |
tree | ff7201e7114863b6b145e74e5e5d9c82ccd3daa0 /Dockerfile | |
parent | 6884de0afc381174bbbb49f35913cd4499f44027 (diff) |
Adding docker.
- Adding docker support. Fixes #6
- Completing the name change to lemmy. Fixes #36
- Running DB migrations from code. Fixes #38
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b17f73c0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:10-jessie as node +#If encounter Invalid cross-device error -run on host 'echo N | sudo tee /sys/module/overlay/parameters/metacopy' +COPY ui /app/ui +RUN cd /app/ui && yarn && yarn build + +FROM rust:1.33 as rust +COPY server /app/server +COPY --from=node /app/ui/dist /app/dist +RUN cd /app/server && cargo build --release +RUN mv /app/server/target/release/lemmy /app/ +EXPOSE 8080 +WORKDIR /app/ + |