Skip to content

Commit

Permalink
Merge pull request #2 from koplenov/second-layer
Browse files Browse the repository at this point in the history
Second layer
  • Loading branch information
koplenov authored Aug 4, 2023
2 parents 1b3f329 + 30fab59 commit d9408f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions v/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
FROM thevlang/vlang
FROM thevlang/vlang:alpine as build

WORKDIR /app

{{#files}}
COPY '{{source}}' '{{target}}'
{{/files}}

RUN v . -o server
RUN v . -prod -o server

FROM alpine

WORKDIR /app

COPY --from=build /app /app

CMD {{command}}
1 change: 1 addition & 0 deletions v/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language:
version: 0.4
files:
- "**/*.v"
- server
engines:
default:
command: /app/server
Expand Down

0 comments on commit d9408f8

Please sign in to comment.