Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NyxUI.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
NyxUI.jl
Commits
b7faf4fd
Commit
b7faf4fd
authored
8 months ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
fix: missing git command
parent
89db8d41
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
front/Containerfile
+11
-5
11 additions, 5 deletions
front/Containerfile
with
11 additions
and
5 deletions
front/Containerfile
+
11
−
5
View file @
b7faf4fd
FROM
docker.io/alpine/git:latest
AS
prebuilder
COPY
. /app
WORKDIR
/app
RUN
git rev-parse
--short
HEAD
>
src/version.txt
\
&&
rm
-rf
.git public storage
FROM
docker.io/nginxinc/nginx-unprivileged:1.27
FROM
docker.io/nginxinc/nginx-unprivileged:1.27
ENV
JULIA_PROJECT /app
ENV
JULIA_PROJECT /app
...
@@ -11,7 +20,7 @@ ARG JULIA_VERSION=1.10.5
...
@@ -11,7 +20,7 @@ ARG JULIA_VERSION=1.10.5
ARG
UID=101
ARG
UID=101
ARG
GID=101
ARG
GID=101
COPY
--chown="$UID:$GID"
.
"$JULIA_PROJECT"
COPY
--chown="$UID:$GID"
--from=prebuilder /app
"$JULIA_PROJECT"
RUN
export
HOME
=
"
$JULIA_PROJECT
"
\
RUN
export
HOME
=
"
$JULIA_PROJECT
"
\
&&
curl
-fsSL
https://install.julialang.org
\
&&
curl
-fsSL
https://install.julialang.org
\
...
@@ -20,15 +29,12 @@ RUN export HOME="$JULIA_PROJECT" \
...
@@ -20,15 +29,12 @@ RUN export HOME="$JULIA_PROJECT" \
ENV
PATH "$PATH:$JULIA_PROJECT/.juliaup/bin"
ENV
PATH "$PATH:$JULIA_PROJECT/.juliaup/bin"
RUN
cd
"
$JULIA_PROJECT
"
\
RUN
cd
"
$JULIA_PROJECT
"
\
&&
git rev-parse
--short
HEAD
>
src/version.txt
\
&&
rm
-rf
.git public storage
\
&&
cp
front/Manifest.toml
.
\
&&
cp
front/Manifest.toml
.
\
&&
julia
-e
'using Pkg; Pkg.instantiate()'
\
&&
julia
-e
'using Pkg; Pkg.instantiate()'
\
&&
mkdir
-p
public
\
&&
mkdir
-p
public
\
&&
chmod
a+x front/entrypoint.sh
&&
chmod
a+x front/entrypoint.sh
ARG
PUBLIC_URL
ARG
PUBLIC_URL=localhost
ARG
NGINX_CONFIG=/etc/nginx/conf.d/default.conf
ARG
NGINX_CONFIG=/etc/nginx/conf.d/default.conf
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment