Image for deploying V based apps on the cloud.
10K+
EXAMPLE:
File structure:
š scripts
š server.v
š Dockerfile
server.v:
import veb
pub struct App {}
pub struct Context {
veb.Context
}
pub fn (mut app App) index(mut ctx Context) veb.Result {
return ctx.text('Hello World!')
}
fn main() {
mut app := &App{}
veb.run[App,Context](mut app,8080)
}
Dockerfile:
FROM heyimtcn/vlang:latest
WORKDIR /app
RUN mkdir bin
COPY scripts scripts
RUN v -o bin/server scripts/server.v
EXPOSE 8080
ENTRYPOINT bin/server
Content type
Image
Digest
sha256:ae4c3c379ā¦
Size
311 MB
Last updated
about 2 years ago
docker pull heyimtcn/vlang