Comments (6)
Well, It didn't help as well, Here's my Dockerfile
# FROM rust:alpine as build
FROM rust:slim as build
COPY . /steel/
WORKDIR /steel
RUN apt update && \
apt install -y \
build-essential \
libssl-dev \
openssl \
pkg-config
# RUN apk update && \
# apk add openssl-dev \
# openssl \
# pkgconfig \
# alpine-sdk
RUN mkdir -p /lib/steel/
ENV STEEL_HOME="/lib/steel"
RUN cargo build
RUN cargo run -- cogs/install.scm
from steel.
It's used to resolve installed modules, so it's not used during any execution, but it's used when compiling steel code to bytecode. So if you want to use globally installed modules then you'll need it
from steel.
Maybe try setting STEEL_HOME
with the ENV
line? Like so:
ENV STEEL_HOME="/lib/steel"
from steel.
I managed to build it using that Dockerfile - here is the output:
➜ steel git:(mwp-improper-lists) ✗ docker build .
[+] Building 63.8s (12/12) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 424B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 48B 0.0s
=> [internal] load metadata for docker.io/library/rust:slim 0.3s
=> [internal] load build context 1.2s
=> => transferring context: 204.43MB 1.1s
=> CACHED [1/7] FROM docker.io/library/rust:slim@sha256:8f7df8eb8f5fc25284cb83a0ba6088a09 0.0s
=> [2/7] COPY . /steel/ 1.0s
=> [3/7] WORKDIR /steel 0.0s
=> [4/7] RUN apt update && apt install -y build-essential libssl-dev openssl pk 8.2s
=> [5/7] RUN mkdir -p /lib/steel/ 0.4s
=> [6/7] RUN cargo build 44.9s
=> [7/7] RUN cargo run -- cogs/install.scm 1.5s
=> exporting to image 6.4s
=> => exporting layers 6.4s
=> => writing image sha256:f39dcc7ff32f2326b46900d1d38a798fe3197591d23bb52931d8b44619bf6d 0.0s
I also added a .dockerignore
with the following contents:
target/
from steel.
yeah, strange! it's working now
BTW STEEL_HOME
is only required during build, right ?
from steel.
Finally! done
from steel.
Related Issues (20)
- to-string adds extra space HOT 2
- Escaping backquotes HOT 2
- Successful redefinition of functions is inconsistent. HOT 3
- filter does not consider lists as true HOT 2
- [feature] self-contained steel program executables HOT 7
- Add `make-string` primitive HOT 5
- Host documentation GitHub pages HOT 2
- Add case insensitive string primitives HOT 1
- Update playground to use latest build
- get started with steel for curious HOT 7
- interpreter panic HOT 3
- Make dylib loading lazy
- Document the process/command API
- testing system and enahnce command `steel test` HOT 8
- Roadmap HOT 6
- Support path expansion
- installer prototype HOT 1
- Replace usages of std::collections::HashMap + HashSet with FxHashMap/FxHashSet
- Support native threads properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steel.