-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 862 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (15 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:22.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt update
# Packages needed to run on fedora, I keep them for future reference
# RUN ["dnf", "install", "-y", "neovim", "llvm14", "llvm14-devel", "llvm14-libs", "llvm14-static", "clang14-devel", "clang", "cmake", "libffi-devel", "make", "gcc-c++", "lld", "zlib-devel", "zstd", "llvm", "llvm-devel", "llvm-libs", "llvm-static", "lld-libs", "llvm-static"]
RUN ["apt", "install", "-y", "curl", "llvm-14-dev", "llvm-14-linker-tools", "clang-14", "llvm-14-tools", "gcc", "g++", "zlib1g-dev"]
WORKDIR /usr/src/app
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-install.sh
RUN chmod +x rustup-install.sh
RUN ./rustup-install.sh -y
RUN source "/root/.cargo/env"
ENV PATH="/root/.cargo/bin:${PATH}"
COPY . ./
RUN ["cargo", "install", "--path", "."]
#ENTRYPOINT ["typeling"]