forked from NSLS2/cms-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 648 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (20 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ghcr.io/prefix-dev/pixi:0.57.0
ENV TZ="America/New_York"
RUN apt-get -y update && \
apt-get -y install git tzdata
COPY pixi.toml .
COPY pixi.lock .
COPY .env .
# use `--locked` to ensure the lockfile is up to date with pixi.toml
RUN pixi install --locked
# create the shell-hook bash script to activate the environment
RUN pixi shell-hook -s bash > /shell-hook
ENV PYTHONUNBUFFERED=1
COPY default.py .
RUN mkdir /etc/tiled
RUN mkdir /.prefect -m 0777
RUN mkdir /repo -m 0777
RUN /bin/bash /shell-hook
#now reapply deployment to push the image that is being created
ENTRYPOINT ["pixi", "run"]
CMD ["python", "-m", "default", "arg"]