mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 04:00:02 +00:00
Dessalines
e826f631d8
- Adding docker support. Fixes #6 - Completing the name change to lemmy. Fixes #36 - Running DB migrations from code. Fixes #38
13 lines
400 B
Docker
13 lines
400 B
Docker
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/
|
|
|