-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (38 loc) · 889 Bytes
/
Dockerfile
File metadata and controls
50 lines (38 loc) · 889 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM golang:1.23.10-alpine3.22
LABEL "com.quatrolabs.space"="quatroLABS Space"
LABEL "description"="A user management microservice; OAuth 2 provider"
RUN apk add --update --no-cache \
binutils-gold \
curl \
g++ \
gcc \
gnupg \
libgcc \
linux-headers \
make \
python3 \
postgresql \
postgresql-contrib \
postgresql-libs \
postgresql-dev \
git
RUN apk add --update --no-cache nodejs
RUN apk add --update --no-cache yarn
ENV PATH=/usr/local/bin:$PATH
ENV PORT=9000
ENV NODE_ENV=production
ENV GIN_MODE=release
ENV SPACE_ENV=production
ENV GO111MODULE=on
ARG COMMIT_HASH_ARG
ENV COMMIT_HASH=${COMMIT_HASH_ARG}
RUN mkdir -p /app
WORKDIR /app
COPY . /app
RUN yarn install && yarn build
RUN go install github.com/go-task/task/v3/cmd/task@latest
RUN task release
EXPOSE 9000
USER 1010
ENTRYPOINT [ "cmd/space" ]
CMD [ "launch" ]