Compare commits
2 Commits
7bf4c5eb22
...
fa8f5d71df
Author | SHA1 | Date |
---|---|---|
core | fa8f5d71df | |
core | e15acefa29 |
|
@ -0,0 +1 @@
|
|||
target
|
|
@ -0,0 +1,14 @@
|
|||
FROM rust
|
||||
|
||||
FROM rust AS deps
|
||||
RUN apt-get update && apt-get install -y lld gfortran build-essential cmake ninja-build libaec-dev libclang-dev
|
||||
|
||||
RUN git clone https://github.com/ecmwf/eccodes && cd eccodes && mkdir build && cd build && cmake .. -DENABLE_PNG=On -G Ninja && ninja && ctest && ninja install
|
||||
|
||||
FROM deps AS build
|
||||
COPY . .
|
||||
RUN RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build --release
|
||||
|
||||
EXPOSE 8080/tcp
|
||||
|
||||
ENTRYPOINT ["./target/release/wxbox-tiler"]
|
|
@ -0,0 +1,16 @@
|
|||
node_modules
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
LICENSE
|
||||
.vscode
|
||||
Makefile
|
||||
helm-charts
|
||||
.env
|
||||
.editorconfig
|
||||
.idea
|
||||
cogerage*
|
||||
target*
|
|
@ -0,0 +1,23 @@
|
|||
FROM oven/bun:1 AS base
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
FROM base AS install
|
||||
RUN mkdir -p /tmp/dev
|
||||
COPY package.json bun.lockb /tmp/dev
|
||||
RUN cd /tmp/dev && bun install --frozen-lockfile
|
||||
|
||||
RUN mkdir -p /tmp/prod
|
||||
COPY package.json bun.lockb /tmp/prod
|
||||
RUN cd /tmp/prod && bun install --frozen-lockfile --production
|
||||
|
||||
FROM base AS release
|
||||
COPY --from=install /tmp/dev/node_modules node_modules
|
||||
COPY . .
|
||||
|
||||
ENV NODE_ENV=production
|
||||
RUN bun test
|
||||
RUN bun run build
|
||||
|
||||
USER bun
|
||||
EXPOSE 3000/tcp
|
||||
ENTRYPOINT [ "bun", "--bun", "run", "./build" ]
|
Loading…
Reference in New Issue