0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-12-22 20:38:22 -05:00
websurfx/dev.Dockerfile
leone c80ae2fd14
Docker compose for development (#336)
* feat: development docker compose

* chore: update readme.md to mention docker compose

* refactor: requested change

* revert: README.md

---------

Co-authored-by: alamin655 <mdalamin655@outlook.com>
2023-10-17 19:47:53 +03:00

16 lines
378 B
Docker

# Create Builder image
FROM --platform=$BUILDPLATFORM rust:1.73.0-alpine3.18
# Install required dependencies
RUN apk add --no-cache alpine-sdk musl-dev g++ make libcrypto3 libressl-dev perl build-base
RUN cargo install cargo-watch --locked
# Create project directory
RUN mkdir -p /project
WORKDIR /project
ENV RUSTFLAGS="-C target-feature=-crt-static"
ENTRYPOINT ["cargo"]